[llvm] r223192 - GCRelocateOperands: Try to appease msc17.

NAKAMURA Takumi geek4civic at gmail.com
Tue Dec 2 18:40:24 PST 2014


Author: chapuni
Date: Tue Dec  2 20:40:24 2014
New Revision: 223192

URL: http://llvm.org/viewvc/llvm-project?rev=223192&view=rev
Log:
GCRelocateOperands: Try to appease msc17.

Modified:
    llvm/trunk/include/llvm/IR/Statepoint.h

Modified: llvm/trunk/include/llvm/IR/Statepoint.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Statepoint.h?rev=223192&r1=223191&r2=223192&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Statepoint.h (original)
+++ llvm/trunk/include/llvm/IR/Statepoint.h Tue Dec  2 20:40:24 2014
@@ -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));
   }





More information about the llvm-commits mailing list