Use Function's arg_size() and size() methods.
[oota-llvm.git] / include / llvm / Bitcode / Deserialize.h
index 6e20434e6c7d13a95839797aa14134d1778beacd..8c9ea89d15225817f73fd14b3bbeee0262be7262 100644 (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);