mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Fix two FIXMEs.
llvm-svn: 90089
This commit is contained in:
parent
2c7105b098
commit
a1d24b5a8d
@ -1480,8 +1480,7 @@ void SROA::ConvertUsesToScalar(Value *Ptr, AllocaInst *NewAI, uint64_t Offset) {
|
||||
|
||||
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 @@ void SROA::ConvertUsesToScalar(Value *Ptr, AllocaInst *NewAI, uint64_t Offset) {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user