mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 20:33:15 +00:00
Revert r90089 for now, it's breaking selfhost.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90097 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ae3d24880d
commit
e6f329476c
@ -1480,7 +1480,8 @@ void SROA::ConvertUsesToScalar(Value *Ptr, AllocaInst *NewAI, uint64_t Offset) {
|
||||
|
||||
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 @@ void SROA::ConvertUsesToScalar(Value *Ptr, AllocaInst *NewAI, uint64_t Offset) {
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user