llvm.org GIT mirror llvm / e7bbd41
Fixed a bug introduced by my last patch. Now we properly clear out the BatchIDVec vector before reusing it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43984 91177308-0d34-0410-b5e6-96231b3b80d8 Ted Kremenek 12 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
212212
213213 template
214214 void BatchReadOwnedPtrs(unsigned NumPtrs, T** Ptrs, bool AutoRegister=true) {
215 BatchIDVec.clear();
216
215217 for (unsigned i = 0; i < NumPtrs; ++i)
216218 BatchIDVec.push_back(ReadPtrID());
217219