mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 06:31:18 +00:00
Use APInt conversion to string so the result is correct regardless of the
bit width of the ConstantInt being converted. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34810 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7029725851
commit
a0e0129e3f
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user