diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-30 17:37:43 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-30 17:37:43 +0000 |
commit | fe09b2098ac483f6d6ce6ea4ab237a9539bdb6b9 (patch) | |
tree | f84ede60d01bb0b508d25d0b779101a5e28c1e09 /lib/Transforms/IPO/ArgumentPromotion.cpp | |
parent | e802f1c4c3c4d1e27117c66d428715d01fda385d (diff) |
Twines: Don't allow implicit conversion from integers, this is too tricky.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77605 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/ArgumentPromotion.cpp')
-rw-r--r-- | lib/Transforms/IPO/ArgumentPromotion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/ArgumentPromotion.cpp b/lib/Transforms/IPO/ArgumentPromotion.cpp index c31e0ef35e..69df49796a 100644 --- a/lib/Transforms/IPO/ArgumentPromotion.cpp +++ b/lib/Transforms/IPO/ArgumentPromotion.cpp @@ -764,9 +764,9 @@ Function *ArgPromotion::DoPromotion(Function *F, Idxs[1] = ConstantInt::get(Type::Int32Ty, i); Value *Idx = GetElementPtrInst::Create(TheAlloca, Idxs, Idxs+2, - TheAlloca->getName()+"."+i, + TheAlloca->getName()+"."+Twine(i), InsertPt); - I2->setName(I->getName()+"."+i); + I2->setName(I->getName()+"."+Twine(i)); new StoreInst(I2++, Idx, InsertPt); } |