GCRelocateOperands: Try to appease msc17.
[oota-llvm.git] / include / llvm / IR / Statepoint.h
index 035509c11e63f3f80eca6550b8215cb50ff65622..e8ed63359e0fde55f03afa13ec36568f1740efcb 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));
   }