[llvm-branch-commits] [llvm-branch] r98723 - /llvm/branches/ggreif/InvokeInst-operands/include/llvm/Instructions.h

Gabor Greif ggreif at gmail.com
Wed Mar 17 03:46:50 PDT 2010


Author: ggreif
Date: Wed Mar 17 05:46:50 2010
New Revision: 98723

URL: http://llvm.org/viewvc/llvm-project?rev=98723&view=rev
Log:
add casts which are present on trunk but got lost in the merge

Modified:
    llvm/branches/ggreif/InvokeInst-operands/include/llvm/Instructions.h

Modified: llvm/branches/ggreif/InvokeInst-operands/include/llvm/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/InvokeInst-operands/include/llvm/Instructions.h?rev=98723&r1=98722&r2=98723&view=diff
==============================================================================
--- llvm/branches/ggreif/InvokeInst-operands/include/llvm/Instructions.h (original)
+++ llvm/branches/ggreif/InvokeInst-operands/include/llvm/Instructions.h Wed Mar 17 05:46:50 2010
@@ -2524,10 +2524,10 @@
     return cast<BasicBlock>(Op<-1>());
   }
   void setNormalDest(BasicBlock *B) {
-    Op<-2>() = B;
+    Op<-2>() = reinterpret_cast<Value*>(B);
   }
   void setUnwindDest(BasicBlock *B) {
-    Op<-1>() = B;
+    Op<-1>() = reinterpret_cast<Value*>(B);
   }
 
   BasicBlock *getSuccessor(unsigned i) const {
@@ -2537,7 +2537,7 @@
 
   void setSuccessor(unsigned idx, BasicBlock *NewSucc) {
     assert(idx < 2 && "Successor # out of range for invoke!");
-    *(&Op<-2>() + idx) = NewSucc;
+    *(&Op<-2>() + idx) = reinterpret_cast<Value*>(NewSucc);
   }
 
   unsigned getNumSuccessors() const { return 2; }





More information about the llvm-branch-commits mailing list