[llvm-commits] [llvm] r90089 - /llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp
Benjamin Kramer
benny.kra at googlemail.com
Sun Nov 29 12:29:31 PST 2009
Author: d0k
Date: Sun Nov 29 14:29:30 2009
New Revision: 90089
URL: http://llvm.org/viewvc/llvm-project?rev=90089&view=rev
Log:
Fix two FIXMEs.
Modified:
llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp?rev=90089&r1=90088&r2=90089&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/ScalarReplAggregates.cpp Sun Nov 29 14:29:30 2009
@@ -1480,8 +1480,7 @@
if (StoreInst *SI = dyn_cast<StoreInst>(User)) {
assert(SI->getOperand(0) != Ptr && "Consistency error!");
- // FIXME: Remove once builder has Twine API.
- Value *Old = Builder.CreateLoad(NewAI, (NewAI->getName()+".in").str().c_str());
+ Value *Old = Builder.CreateLoad(NewAI, NewAI->getName() + ".in");
Value *New = ConvertScalar_InsertValue(SI->getOperand(0), Old, Offset,
Builder);
Builder.CreateStore(New, NewAI);
@@ -1504,9 +1503,8 @@
if (Val)
for (unsigned i = 1; i != NumBytes; ++i)
APVal |= APVal << 8;
-
- // FIXME: Remove once builder has Twine API.
- Value *Old = Builder.CreateLoad(NewAI, (NewAI->getName()+".in").str().c_str());
+
+ Value *Old = Builder.CreateLoad(NewAI, NewAI->getName() + ".in");
Value *New = ConvertScalar_InsertValue(
ConstantInt::get(User->getContext(), APVal),
Old, Offset, Builder);
More information about the llvm-commits
mailing list