Changes in directory llvm/lib/Transforms/Scalar:

InstructionCombining.cpp updated: 1.760 -> 1.761
---
Log message:

Fix a bug in my previous patch


---
Diffs of the changes:  (+1 -1)

 InstructionCombining.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.760 
llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.761
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.760   Sat May  5 
17:41:33 2007
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Sun May  6 02:24:03 2007
@@ -5600,7 +5600,7 @@
          cast<IntegerType>(DestTy)->getBitWidth()) {
     Value *RHSOp = 0;
     if (Constant *RHSC = dyn_cast<Constant>(ICI.getOperand(1))) {
-      RHSOp = ConstantExpr::getPtrToInt(RHSC, SrcTy);
+      RHSOp = ConstantExpr::getIntToPtr(RHSC, SrcTy);
     } else if (PtrToIntInst *RHSC = dyn_cast<PtrToIntInst>(ICI.getOperand(1))) 
{
       RHSOp = RHSC->getOperand(0);
       // If the pointer types don't match, insert a bitcast.



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to