diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-03-01 21:00:32 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-03-01 21:00:32 +0000 |
commit | 5b0548de77af8ca9fe22e87ce937b0cafb5152eb (patch) | |
tree | 387f571c30b9d0095990564df0cafeac6abf8b50 /llvm/lib/Transforms/IPO/ArgumentPromotion.cpp | |
parent | 07761199e0ec1acb475cccead2ae809dfbba550b (diff) | |
download | bcm5719-llvm-5b0548de77af8ca9fe22e87ce937b0cafb5152eb.tar.gz bcm5719-llvm-5b0548de77af8ca9fe22e87ce937b0cafb5152eb.zip |
Use APInt conversion to string so the result is correct regardless of the
bit width of the ConstantInt being converted.
llvm-svn: 34810
Diffstat (limited to 'llvm/lib/Transforms/IPO/ArgumentPromotion.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/ArgumentPromotion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp index 7036a01f090..e1fe118686e 100644 --- a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp +++ b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp @@ -515,7 +515,7 @@ Function *ArgPromotion::DoPromotion(Function *F, 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"); |