// Initialize return values from the incoming instruction
Value* ptrVal = getElemInst->getPointerOperand();
- chainIdxVec = getElemInst->getIndices(); // copies index vector values
+ chainIdxVec = getElemInst->getIndicesBROKEN(); // copies index vector values
// Now chase the chain of getElementInstr instructions, if any
InstrTreeNode* ptrChild = getElemInstrNode->leftChild();
// Child is a GetElemPtr instruction
getElemInst = (MemAccessInst*)
((InstructionNode*) ptrChild)->getInstruction();
- const vector<ConstPoolVal*>& idxVec = getElemInst->getIndices();
+ const vector<ConstPoolVal*>& idxVec = getElemInst->getIndicesBROKEN();
// Get the pointer value out of ptrChild and *prepend* its index vector
ptrVal = getElemInst->getPointerOperand();
// Initialize return values from the incoming instruction
Value* ptrVal = getElemInst->getPointerOperand();
- chainIdxVec = getElemInst->getIndices(); // copies index vector values
+ chainIdxVec = getElemInst->getIndicesBROKEN(); // copies index vector values
// Now chase the chain of getElementInstr instructions, if any
InstrTreeNode* ptrChild = getElemInstrNode->leftChild();
// Child is a GetElemPtr instruction
getElemInst = (MemAccessInst*)
((InstructionNode*) ptrChild)->getInstruction();
- const vector<ConstPoolVal*>& idxVec = getElemInst->getIndices();
+ const vector<ConstPoolVal*>& idxVec = getElemInst->getIndicesBROKEN();
// Get the pointer value out of ptrChild and *prepend* its index vector
ptrVal = getElemInst->getPointerOperand();
// The major work here is to extract these for all 3 instruction types
// and then call the common function SetMemOperands_Internal().
//
- const vector<ConstPoolVal*>* idxVec = &memInst->getIndices();
+ const vector<ConstPoolVal*> OLDIDXVEC = memInst->getIndicesBROKEN();
+ const vector<ConstPoolVal*>* idxVec = &OLDIDXVEC; //FIXME
vector<ConstPoolVal*>* newIdxVec = NULL;
Value* ptrVal;
Value* arrayOffsetVal = NULL;