Update GEP constructors to use an iterator interface to fix
[oota-llvm.git] / lib / Bitcode / Reader / BitcodeReader.cpp
index e1cd668a83e8fe3b2ac332ca4c4881de6c385bfd..6ad1fd595b729580dc96510ed06d569d1ab682a5 100644 (file)
@@ -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;
     }