diff options
Diffstat (limited to 'include/llvm/Bitcode/Deserialize.h')
-rw-r--r-- | include/llvm/Bitcode/Deserialize.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Bitcode/Deserialize.h b/include/llvm/Bitcode/Deserialize.h index 9fdbc8cd96..41347b5ca7 100644 --- a/include/llvm/Bitcode/Deserialize.h +++ b/include/llvm/Bitcode/Deserialize.h @@ -141,7 +141,10 @@ public: template <typename T> void ReadPtr(const T*& PtrRef, bool AllowBackpatch = true) { ReadPtr(const_cast<T*&>(PtrRef), AllowBackpatch); - } + } + + template <typename T> + T* ReadPtr() { T* x; ReadPtr<T>(x,false); return x; } void ReadUIntPtr(uintptr_t& PtrRef, bool AllowBackpatch = true); |