[llvm-commits] [llvm] r43413 - /llvm/trunk/include/llvm/Bitcode/Serialization.h
Ted Kremenek
kremenek at apple.com
Fri Oct 26 16:44:59 PDT 2007
Author: kremenek
Date: Fri Oct 26 18:44:59 2007
New Revision: 43413
URL: http://llvm.org/viewvc/llvm-project?rev=43413&view=rev
Log:
Fixed bug where default SerializeTrait<>::Materialize would not return the materialized object pointer.
Modified:
llvm/trunk/include/llvm/Bitcode/Serialization.h
Modified: llvm/trunk/include/llvm/Bitcode/Serialization.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Bitcode/Serialization.h?rev=43413&r1=43412&r2=43413&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Bitcode/Serialization.h (original)
+++ llvm/trunk/include/llvm/Bitcode/Serialization.h Fri Oct 26 18:44:59 2007
@@ -38,7 +38,7 @@
static inline void Emit(Serializer& S, const T& X) { X.Emit(S); }
static inline void Read(Deserializer& D, T& X) { X.Read(D); }
static inline T ReadVal(Deserializer& D) { T::ReadVal(D); }
- static inline T* Materialize(Deserializer& D) { T::Materialize(D); }
+ static inline T* Materialize(Deserializer& D) { return T::Materialize(D); }
};
#define SERIALIZE_INT_TRAIT(TYPE)\
More information about the llvm-commits
mailing list