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 | 38dbe1ca14bd47865704d5ba834d94e017a06509 (patch) | |
| tree | 2fc36ae12ba7cfcbbf1224ffba0b3540fcb8ce0f /llvm/lib | |
| parent | 595cef1650441de5ff28469f504fc28dcf281d5d (diff) | |
| download | bcm5719-llvm-38dbe1ca14bd47865704d5ba834d94e017a06509.tar.gz bcm5719-llvm-38dbe1ca14bd47865704d5ba834d94e017a06509.zip | |
Tidy up a bit.
llvm-svn: 32462
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter.cpp index 498339c014e..a9e94a01f7d 100644 --- a/llvm/lib/CodeGen/AsmPrinter.cpp +++ b/llvm/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); } |

