projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0e9f72
)
Tidy up a bit.
author
Reid Spencer
<rspencer@reidspencer.com>
Tue, 12 Dec 2006 01:32:02 +0000
(
01:32
+0000)
committer
Reid 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
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AsmPrinter.cpp
b/lib/CodeGen/AsmPrinter.cpp
index 498339c014e9dd8d51f9d5f09a9ad82fca5402e0..a9e94a01f7dcb448c99b06830ae41b2a16491222 100644
(file)
--- 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::get
Cast(Instruction::PtrToInt,
Op, IntPtrTy);
+ Op = ConstantExpr::get
PtrToInt(
Op, IntPtrTy);
return EmitConstantValueOnly(Op);
}