Initialize new field.
authorChris Lattner <sabre@nondot.org>
Sat, 5 Feb 2005 01:37:58 +0000 (01:37 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 5 Feb 2005 01:37:58 +0000 (01:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20044 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Value.cpp

index 3547ac581a34ebc753519e5557f3eb9b7c4e14f5..9dc45f267e47e7af1e6394356b7d53999ad6068f 100644 (file)
@@ -31,7 +31,8 @@ static inline const Type *checkType(const Type *Ty) {
 }
 
 Value::Value(const Type *ty, unsigned scid, const std::string &name)
-  : SubclassID(scid), Ty(checkType(ty)), UseList(0), Name(name) {
+  : SubclassID(scid), SubclassData(0), Ty(checkType(ty)),
+    UseList(0), Name(name) {
   if (!isa<Constant>(this) && !isa<BasicBlock>(this))
     assert((Ty->isFirstClassType() || Ty == Type::VoidTy || 
            isa<OpaqueType>(ty)) &&