Tidy up a bit.
authorReid Spencer <rspencer@reidspencer.com>
Tue, 12 Dec 2006 01:32:02 +0000 (01:32 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Tue, 12 Dec 2006 01:32:02 +0000 (01:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32462 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter.cpp

index 498339c014e9dd8d51f9d5f09a9ad82fca5402e0..a9e94a01f7dcb448c99b06830ae41b2a16491222 100644 (file)
@@ -450,7 +450,7 @@ void AsmPrinter::EmitConstantValueOnly(const Constant *CV) {
         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);
       }