[llvm-commits] CVS: llvm/lib/CodeGen/AsmPrinter.cpp

Reid Spencer reid at x10sys.com
Mon Dec 11 17:32:17 PST 2006



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);
       }
       






More information about the llvm-commits mailing list