diff --git a/include/llvm/Bitcode/Deserialize.h b/include/llvm/Bitcode/Deserialize.h index 6e20434e6c7..8c9ea89d152 100644 --- a/include/llvm/Bitcode/Deserialize.h +++ b/include/llvm/Bitcode/Deserialize.h @@ -436,7 +436,7 @@ public: } template - T* ReadPtr() { T* x; ReadPtr(x,false); return x; } + T* ReadPtr() { T* x = 0; ReadPtr(x,false); return x; } void ReadUIntPtr(uintptr_t& PtrRef, const SerializedPtrID& PtrID, bool AllowBackpatch = true);