summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-11-14 11:27:58 +0000
committerChris Lattner <sabre@nondot.org>2001-11-14 11:27:58 +0000
commit1237e86597b9a60388a7e08a34aaddae42a0df0c (patch)
treee19404004ee86be2a7ca59e098937f1c8ab6b26c /llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp
parentafea660cb5f18318d47e69b5c8a29eed61758967 (diff)
downloadbcm5719-llvm-1237e86597b9a60388a7e08a34aaddae42a0df0c.tar.gz
bcm5719-llvm-1237e86597b9a60388a7e08a34aaddae42a0df0c.zip
Remove much cruft from the MemAccessInst instruction
llvm-svn: 1298
Diffstat (limited to 'llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp')
-rw-r--r--llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp b/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp
index 0a6d7d331d3..cb3f9a15822 100644
--- a/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp
+++ b/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp
@@ -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();
OpenPOWER on IntegriCloud