initialize the Next field to null
authorChris Lattner <sabre@nondot.org>
Mon, 30 Jan 2012 01:17:43 +0000 (01:17 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 30 Jan 2012 01:17:43 +0000 (01:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149217 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Constants.h

index 1180b955f2719c5b565979e96a6f1a6a9921e38c..f5d999b2952a12bdef4da8b87bbe254d4d510c9e 100644 (file)
@@ -581,7 +581,7 @@ class ConstantDataSequential : public Constant {
   ConstantDataSequential(const ConstantDataSequential &);    // DO NOT IMPLEMENT
 protected:
   explicit ConstantDataSequential(Type *ty, ValueTy VT, const char *Data)
-    : Constant(ty, VT, 0, 0), DataElements(Data) {}
+    : Constant(ty, VT, 0, 0), DataElements(Data), Next(0) {}
   ~ConstantDataSequential() { delete Next; }
   
   static Constant *getImpl(StringRef Bytes, Type *Ty);