GCRelocateOperands: Try to appease msc17.

llvm-svn: 223192
This commit is contained in:
NAKAMURA Takumi 2014-12-03 02:40:24 +00:00
parent 6b46e381e6
commit 0a64776cc0
1 changed files with 3 additions and 2 deletions

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));
}