summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-07-25 09:48:08 +0000
committerJay Foad <jay.foad@gmail.com>2011-07-25 09:48:08 +0000
commitd1b7849d49d968a6f5398eb5534a763d42be97b8 (patch)
tree80773d650d8c3049e3a9fdc3e21597e7853925b7 /llvm/lib/Bitcode
parent1dba445e433aea5bb188e424650c912f620ad341 (diff)
downloadbcm5719-llvm-d1b7849d49d968a6f5398eb5534a763d42be97b8.tar.gz
bcm5719-llvm-d1b7849d49d968a6f5398eb5534a763d42be97b8.zip
Convert GetElementPtrInst to use ArrayRef.
llvm-svn: 135904
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index e8e8c2a7b6f..914c6c10516 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -2181,7 +2181,7 @@ bool BitcodeReader::ParseFunctionBody(Function *F) {
GEPIdx.push_back(Op);
}
- I = GetElementPtrInst::Create(BasePtr, GEPIdx.begin(), GEPIdx.end());
+ I = GetElementPtrInst::Create(BasePtr, GEPIdx);
InstructionList.push_back(I);
if (BitCode == bitc::FUNC_CODE_INST_INBOUNDS_GEP)
cast<GetElementPtrInst>(I)->setIsInBounds(true);
OpenPOWER on IntegriCloud