Initialize a local variable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50527 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ted Kremenek 2008-05-01 17:08:00 +00:00
parent 6bf30ab347
commit 5713604f8e

View File

@ -436,7 +436,7 @@ public:
}
template <typename T>
T* ReadPtr() { T* x; ReadPtr<T>(x,false); return x; }
T* ReadPtr() { T* x = 0; ReadPtr<T>(x,false); return x; }
void ReadUIntPtr(uintptr_t& PtrRef, const SerializedPtrID& PtrID,
bool AllowBackpatch = true);