summaryrefslogtreecommitdiff
path: root/include/llvm/Constants.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2012-01-30 01:17:43 +0000
committerChris Lattner <sabre@nondot.org>2012-01-30 01:17:43 +0000
commit57af41e78c244951459c001dc37a92837a1c8f66 (patch)
treeb460a91feed80d4086c5a2ee2a1815d226c329cf /include/llvm/Constants.h
parent86c7c583a36e54ea13f2ee31d622090b4fe9c184 (diff)
downloadllvm-57af41e78c244951459c001dc37a92837a1c8f66.tar.gz
llvm-57af41e78c244951459c001dc37a92837a1c8f66.tar.bz2
llvm-57af41e78c244951459c001dc37a92837a1c8f66.tar.xz
initialize the Next field to null
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149217 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Constants.h')
-rw-r--r--include/llvm/Constants.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index 1180b955f2..f5d999b295 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);