OSDN Git Service

GCRelocateOperands: Try to appease msc17.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 3 Dec 2014 02:40:24 +0000 (02:40 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 3 Dec 2014 02:40:24 +0000 (02:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223192 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/Statepoint.h

index 035509c..e8ed633 100644 (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));
   }