mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 18:04:59 +00:00
Support array indexing
llvm-svn: 1345
This commit is contained in:
parent
4694a03e25
commit
e996313daa
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user