From cb2335f13fd41a62d5be9f0f99e8de283f524ddb Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Sat, 15 Dec 2001 00:36:32 +0000 Subject: Eliminate all uses of memInst->getIndicesBROKEN(). llvm-svn: 1485 --- llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp') diff --git a/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp b/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp index 468bd8f5b6e..30d9c7eb78a 100644 --- a/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp +++ b/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp @@ -111,14 +111,14 @@ GetConstantValueAsSignedInt(const Value *V, Value* FoldGetElemChain(const InstructionNode* getElemInstrNode, - vector& chainIdxVec) + vector& chainIdxVec) { MemAccessInst* getElemInst = (MemAccessInst*) getElemInstrNode->getInstruction(); // Initialize return values from the incoming instruction Value* ptrVal = getElemInst->getPointerOperand(); - chainIdxVec = getElemInst->getIndicesBROKEN(); // copies index vector values + chainIdxVec = getElemInst->copyIndices(); // Now chase the chain of getElementInstr instructions, if any InstrTreeNode* ptrChild = getElemInstrNode->leftChild(); @@ -128,7 +128,7 @@ FoldGetElemChain(const InstructionNode* getElemInstrNode, // Child is a GetElemPtr instruction getElemInst = (MemAccessInst*) ((InstructionNode*) ptrChild)->getInstruction(); - const vector& idxVec = getElemInst->getIndicesBROKEN(); + const vector& idxVec = getElemInst->copyIndices(); // Get the pointer value out of ptrChild and *prepend* its index vector ptrVal = getElemInst->getPointerOperand(); -- cgit v1.2.3