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");



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to