diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-10-26 23:44:59 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-10-26 23:44:59 +0000 |
commit | d9c8822fb308862ea0d4df06c1c7df8fd38d4f1d (patch) | |
tree | a51f0ee3fb8bb885342ee55af7afb390d14b7842 /include/llvm | |
parent | 318d3ae39776c30bd6c4438fd240b8f34a89046b (diff) | |
download | external_llvm-d9c8822fb308862ea0d4df06c1c7df8fd38d4f1d.zip external_llvm-d9c8822fb308862ea0d4df06c1c7df8fd38d4f1d.tar.gz external_llvm-d9c8822fb308862ea0d4df06c1c7df8fd38d4f1d.tar.bz2 |
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
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Bitcode/Serialization.h | 2 |
1 files changed, 1 insertions, 1 deletions
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)\ |