From bd514b79764cf030ddad1381307999a77a0d4519 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 30 Jan 2012 01:17:43 +0000 Subject: [PATCH] initialize the Next field to null llvm-svn: 149217 --- include/llvm/Constants.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index 1180b955f27..f5d999b2952 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -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);