mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
Store instructions always return void, so they never get a name
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2283 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -123,8 +123,7 @@ static Instruction *CombineIndicies(MemAccessInst *MAI) {
|
|||||||
case Instruction::Load:
|
case Instruction::Load:
|
||||||
return new LoadInst(Src->getOperand(0), Indices, MAI->getName());
|
return new LoadInst(Src->getOperand(0), Indices, MAI->getName());
|
||||||
case Instruction::Store:
|
case Instruction::Store:
|
||||||
return new StoreInst(MAI->getOperand(0), Src->getOperand(0),
|
return new StoreInst(MAI->getOperand(0), Src->getOperand(0), Indices);
|
||||||
Indices, MAI->getName());
|
|
||||||
default:
|
default:
|
||||||
assert(0 && "Unknown memaccessinst!");
|
assert(0 && "Unknown memaccessinst!");
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user