[llvm-commits] CVS: llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
Reid Spencer
reid at x10sys.com
Thu Mar 1 13:00:49 PST 2007
Changes in directory llvm/lib/Transforms/IPO:
ArgumentPromotion.cpp updated: 1.38 -> 1.39
---
Log message:
Use APInt conversion to string so the result is correct regardless of the
bit width of the ConstantInt being converted.
---
Diffs of the changes: (+1 -1)
ArgumentPromotion.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
diff -u llvm/lib/Transforms/IPO/ArgumentPromotion.cpp:1.38 llvm/lib/Transforms/IPO/ArgumentPromotion.cpp:1.39
--- llvm/lib/Transforms/IPO/ArgumentPromotion.cpp:1.38 Mon Feb 12 20:10:56 2007
+++ llvm/lib/Transforms/IPO/ArgumentPromotion.cpp Thu Mar 1 15:00:32 2007
@@ -515,7 +515,7 @@
std::string NewName = I->getName();
for (unsigned i = 0, e = Operands.size(); i != e; ++i)
if (ConstantInt *CI = dyn_cast<ConstantInt>(Operands[i]))
- NewName += "."+itostr((int64_t)CI->getZExtValue());
+ NewName += "." + CI->getValue().toString(10);
else
NewName += ".x";
TheArg->setName(NewName+".val");
More information about the llvm-commits
mailing list