mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 21:30:49 +00:00
Fix Regression/Transforms/ScalarRepl/2006-01-24-IllegalUnionPromoteCrash.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25587 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
720d2108be
commit
15256cb14e
@ -554,9 +554,7 @@ void SROA::ConvertUsesToScalar(Value *Ptr, AllocaInst *NewAI, unsigned Offset) {
|
||||
// Convert the stored type to the actual type, shift it left to insert
|
||||
// then 'or' into place.
|
||||
Value *SV = SI->getOperand(0);
|
||||
if (SV->getType() == NewAI->getType()->getElementType()) {
|
||||
assert(Offset == 0 && "Store out of bounds!");
|
||||
} else {
|
||||
if (SV->getType() != NewAI->getType()->getElementType() || Offset != 0) {
|
||||
Value *Old = new LoadInst(NewAI, NewAI->getName()+".in", SI);
|
||||
// If SV is signed, convert it to unsigned, so that the next cast zero
|
||||
// extends the value.
|
||||
|
Loading…
Reference in New Issue
Block a user