From d9c8822fb308862ea0d4df06c1c7df8fd38d4f1d Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 26 Oct 2007 23:44:59 +0000 Subject: Fixed bug where default SerializeTrait<>::Materialize would not return the materialized object pointer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43413 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Bitcode/Serialization.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/llvm') diff --git a/include/llvm/Bitcode/Serialization.h b/include/llvm/Bitcode/Serialization.h index 1923bb4..98351a0 100644 --- a/include/llvm/Bitcode/Serialization.h +++ b/include/llvm/Bitcode/Serialization.h @@ -38,7 +38,7 @@ struct SerializeTrait { 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)\ -- cgit v1.1