diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-12 01:32:02 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-12 01:32:02 +0000 |
commit | 86b89e55290e2245dc3fe72c4e084cc74179ac08 (patch) | |
tree | 873c35571a9c9052d97894d2adc7f1f06300d3ff | |
parent | b0e9f722daf3a896aa1f7bbf1d1ab4cabf2c2d5b (diff) |
Tidy up a bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32462 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/AsmPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp index 498339c014..a9e94a01f7 100644 --- a/lib/CodeGen/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter.cpp @@ -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); } |