summaryrefslogtreecommitdiffstats
path: root/llvm
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
commite29b53622adb0638be24b9d16e8b090b9c1079eb (patch)
tree12a728525c4925828de304e71232a284f15f3203 /llvm
parentca29bcfc10c9a9d0c32ff0e0d3211892ca7decde (diff)
downloadbcm5719-llvm-e29b53622adb0638be24b9d16e8b090b9c1079eb.tar.gz
bcm5719-llvm-e29b53622adb0638be24b9d16e8b090b9c1079eb.zip
initialize the Next field to null
llvm-svn: 149217
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Constants.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Constants.h b/llvm/include/llvm/Constants.h
index 1180b955f27..f5d999b2952 100644
--- a/llvm/include/llvm/Constants.h
+++ b/llvm/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);
OpenPOWER on IntegriCloud