[llvm-commits] [llvm] r43853 - /llvm/trunk/include/llvm/Bitcode/Serialize.h

Ted Kremenek kremenek at apple.com
Wed Nov 7 15:32:06 PST 2007


Author: kremenek
Date: Wed Nov  7 17:32:06 2007
New Revision: 43853

URL: http://llvm.org/viewvc/llvm-project?rev=43853&view=rev
Log:
Fixed bug where we did not properly serialize owned objects due to a missing
dereference.

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

Modified: llvm/trunk/include/llvm/Bitcode/Serialize.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Bitcode/Serialize.h?rev=43853&r1=43852&r2=43853&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Bitcode/Serialize.h (original)
+++ llvm/trunk/include/llvm/Bitcode/Serialize.h Wed Nov  7 17:32:06 2007
@@ -91,7 +91,7 @@
       EmitPtr(Ptrs[i]);
 
     for (unsigned i = 0; i < NumPtrs; ++i)
-      if (Ptrs[i]) SerializeTrait<T>::Emit(*this,Ptrs[i]);
+      if (Ptrs[i]) SerializeTrait<T>::Emit(*this,*Ptrs[i]);
   }
   
   void FlushRecord() { if (inRecord()) EmitRecord(); }





More information about the llvm-commits mailing list