Support array indexing

llvm-svn: 1345
This commit is contained in:
Chris Lattner 2001-11-26 17:00:43 +00:00
parent 4694a03e25
commit e996313daa

View File

@ -320,12 +320,11 @@ InsertPrintInsts(Value *Val,
static LoadInst*
InsertLoadInst(StoreInst* storeInst,
InsertLoadInst(StoreInst *SI,
BasicBlock *bb,
BasicBlock::iterator &BBI)
{
LoadInst* loadInst = new LoadInst(storeInst->getPointerOperand(),
storeInst->getIndices());
LoadInst* loadInst = new LoadInst(SI->getPointerOperand(), SI->copyIndices());
BBI = bb->getInstList().insert(BBI, loadInst) + 1;
return loadInst;
}