From: Ted Kremenek Date: Sat, 10 Nov 2007 19:33:26 +0000 (+0000) Subject: Fixed a bug introduced by my last patch. Now we properly clear out the BatchIDVec X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e7bbd41af29a2376cf8873da882f54ba25b1d91f;p=oota-llvm.git 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 --- diff --git a/include/llvm/Bitcode/Deserialize.h b/include/llvm/Bitcode/Deserialize.h index 87d0f12728a..d8e3b38f4e7 100644 --- a/include/llvm/Bitcode/Deserialize.h +++ b/include/llvm/Bitcode/Deserialize.h @@ -213,6 +213,8 @@ public: template void BatchReadOwnedPtrs(unsigned NumPtrs, T** Ptrs, bool AutoRegister=true) { + BatchIDVec.clear(); + for (unsigned i = 0; i < NumPtrs; ++i) BatchIDVec.push_back(ReadPtrID());