GCRelocateOperands: Try to appease msc17.

llvm-svn: 223192
This commit is contained in:
NAKAMURA Takumi 2014-12-03 02:40:24 +00:00
parent 837799f13b
commit 8d1511b4de

View File

@ -177,8 +177,9 @@ class GCRelocateOperands {
ImmutableCallSite RelocateCS;
public:
GCRelocateOperands(const User* U)
: GCRelocateOperands(cast<Instruction>(U)) {}
GCRelocateOperands(const User* U) : RelocateCS(U) {
assert(isGCRelocate(U));
}
GCRelocateOperands(const Instruction *inst) : RelocateCS(inst) {
assert(isGCRelocate(inst));
}