Changes in directory llvm/lib/CodeGen:

AsmPrinter.cpp updated: 1.121 -> 1.122
---
Log message:

Tidy up a bit.


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

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


Index: llvm/lib/CodeGen/AsmPrinter.cpp
diff -u llvm/lib/CodeGen/AsmPrinter.cpp:1.121 
llvm/lib/CodeGen/AsmPrinter.cpp:1.122
--- llvm/lib/CodeGen/AsmPrinter.cpp:1.121       Mon Dec 11 19:17:40 2006
+++ llvm/lib/CodeGen/AsmPrinter.cpp     Mon Dec 11 19:32:02 2006
@@ -450,7 +450,7 @@
         if (opcode == Instruction::IntToPtr)
           Op = ConstantExpr::getIntegerCast(Op, IntPtrTy, false /*ZExt*/);
         else 
-          Op = ConstantExpr::getCast(Instruction::PtrToInt, Op, IntPtrTy);
+          Op = ConstantExpr::getPtrToInt(Op, IntPtrTy);
         return EmitConstantValueOnly(Op);
       }
       



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

Reply via email to