projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Update GEP constructors to use an iterator interface to fix
[oota-llvm.git]
/
lib
/
Bitcode
/
Reader
/
BitcodeReader.cpp
diff --git
a/lib/Bitcode/Reader/BitcodeReader.cpp
b/lib/Bitcode/Reader/BitcodeReader.cpp
index e1cd668a83e8fe3b2ac332ca4c4881de6c385bfd..6ad1fd595b729580dc96510ed06d569d1ab682a5 100644
(file)
--- a/
lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/
lib/Bitcode/Reader/BitcodeReader.cpp
@@
-1234,7
+1234,7
@@
bool BitcodeReader::ParseFunctionBody(Function *F) {
GEPIdx.push_back(Op);
}
- I = new GetElementPtrInst(BasePtr,
&GEPIdx[0], GEPIdx.size
());
+ I = new GetElementPtrInst(BasePtr,
GEPIdx.begin(), GEPIdx.end
());
break;
}