[llvm-commits] [llvm] r149217 - /llvm/trunk/include/llvm/Constants.h
Chris Lattner
sabre at nondot.org
Sun Jan 29 17:17:44 PST 2012
Author: lattner
Date: Sun Jan 29 19:17:43 2012
New Revision: 149217
URL: http://llvm.org/viewvc/llvm-project?rev=149217&view=rev
Log:
initialize the Next field to null
Modified:
llvm/trunk/include/llvm/Constants.h
Modified: llvm/trunk/include/llvm/Constants.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Constants.h?rev=149217&r1=149216&r2=149217&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Constants.h (original)
+++ llvm/trunk/include/llvm/Constants.h Sun Jan 29 19:17:43 2012
@@ -581,7 +581,7 @@
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);
More information about the llvm-commits
mailing list