[llvm-commits] [llvm] r50527 - /llvm/trunk/include/llvm/Bitcode/Deserialize.h
Ted Kremenek
kremenek at apple.com
Thu May 1 10:08:00 PDT 2008
Author: kremenek
Date: Thu May 1 12:08:00 2008
New Revision: 50527
URL: http://llvm.org/viewvc/llvm-project?rev=50527&view=rev
Log:
Initialize a local variable.
Modified:
llvm/trunk/include/llvm/Bitcode/Deserialize.h
Modified: llvm/trunk/include/llvm/Bitcode/Deserialize.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Bitcode/Deserialize.h?rev=50527&r1=50526&r2=50527&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Bitcode/Deserialize.h (original)
+++ llvm/trunk/include/llvm/Bitcode/Deserialize.h Thu May 1 12:08:00 2008
@@ -436,7 +436,7 @@
}
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);
More information about the llvm-commits
mailing list