summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-12-12 01:32:02 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-12-12 01:32:02 +0000
commit38dbe1ca14bd47865704d5ba834d94e017a06509 (patch)
tree2fc36ae12ba7cfcbbf1224ffba0b3540fcb8ce0f /llvm/lib/CodeGen
parent595cef1650441de5ff28469f504fc28dcf281d5d (diff)
downloadbcm5719-llvm-38dbe1ca14bd47865704d5ba834d94e017a06509.tar.gz
bcm5719-llvm-38dbe1ca14bd47865704d5ba834d94e017a06509.zip
Tidy up a bit.
llvm-svn: 32462
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter.cpp2
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);
}
OpenPOWER on IntegriCloud