From: Ted Kremenek Date: Thu, 1 May 2008 17:08:00 +0000 (+0000) Subject: Initialize a local variable. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=5713604f8e6308950a9300eb3c6f92b09f3046b5;p=oota-llvm.git Initialize a local variable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50527 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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);