[llvm-commits] [llvm] r43984 - /llvm/trunk/include/llvm/Bitcode/Deserialize.h

Ted Kremenek kremenek at apple.com
Sat Nov 10 11:33:26 PST 2007


Author: kremenek
Date: Sat Nov 10 13:33:26 2007
New Revision: 43984

URL: http://llvm.org/viewvc/llvm-project?rev=43984&view=rev
Log:
Fixed a bug introduced by my last patch.  Now we properly clear out the BatchIDVec
vector before reusing it.

Modified:
    llvm/trunk/include/llvm/Bitcode/Deserialize.h

Modified: llvm/trunk/include/llvm/Bitcode/Deserialize.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Bitcode/Deserialize.h?rev=43984&r1=43983&r2=43984&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Bitcode/Deserialize.h (original)
+++ llvm/trunk/include/llvm/Bitcode/Deserialize.h Sat Nov 10 13:33:26 2007
@@ -213,6 +213,8 @@
   
   template <typename T>
   void BatchReadOwnedPtrs(unsigned NumPtrs, T** Ptrs, bool AutoRegister=true) {
+    BatchIDVec.clear();
+    
     for (unsigned i = 0; i < NumPtrs; ++i)
       BatchIDVec.push_back(ReadPtrID());
     





More information about the llvm-commits mailing list