From 7c54b4a067ba181da846a4a787fa57a18fc7245b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 26 Nov 2001 17:00:43 +0000 Subject: [PATCH] Support array indexing git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1345 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Instrumentation/TraceValues.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Transforms/Instrumentation/TraceValues.cpp b/lib/Transforms/Instrumentation/TraceValues.cpp index 37379ef2904..dcca54d57b1 100644 --- a/lib/Transforms/Instrumentation/TraceValues.cpp +++ b/lib/Transforms/Instrumentation/TraceValues.cpp @@ -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; } -- 2.34.1