mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-27 14:24:40 +00:00
Remove much cruft from the MemAccessInst instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1298 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -117,7 +117,7 @@ FoldGetElemChain(const InstructionNode* getElemInstrNode,
|
||||
getElemInstrNode->getInstruction();
|
||||
|
||||
// Initialize return values from the incoming instruction
|
||||
Value* ptrVal = getElemInst->getPtrOperand();
|
||||
Value* ptrVal = getElemInst->getPointerOperand();
|
||||
chainIdxVec = getElemInst->getIndices(); // copies index vector values
|
||||
|
||||
// Now chase the chain of getElementInstr instructions, if any
|
||||
@ -131,7 +131,7 @@ FoldGetElemChain(const InstructionNode* getElemInstrNode,
|
||||
const vector<ConstPoolVal*>& idxVec = getElemInst->getIndices();
|
||||
|
||||
// Get the pointer value out of ptrChild and *prepend* its index vector
|
||||
ptrVal = getElemInst->getPtrOperand();
|
||||
ptrVal = getElemInst->getPointerOperand();
|
||||
chainIdxVec.insert(chainIdxVec.begin(), idxVec.begin(), idxVec.end());
|
||||
|
||||
ptrChild = ptrChild->leftChild();
|
||||
|
Reference in New Issue
Block a user