diff options
author | Chris Lattner <sabre@nondot.org> | 2012-01-30 01:17:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2012-01-30 01:17:43 +0000 |
commit | 57af41e78c244951459c001dc37a92837a1c8f66 (patch) | |
tree | b460a91feed80d4086c5a2ee2a1815d226c329cf /include/llvm/Constants.h | |
parent | 86c7c583a36e54ea13f2ee31d622090b4fe9c184 (diff) | |
download | external_llvm-57af41e78c244951459c001dc37a92837a1c8f66.zip external_llvm-57af41e78c244951459c001dc37a92837a1c8f66.tar.gz external_llvm-57af41e78c244951459c001dc37a92837a1c8f66.tar.bz2 |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index 1180b95..f5d999b 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); |