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