Initialize new field.

llvm-svn: 20044
This commit is contained in:
Chris Lattner 2005-02-05 01:37:58 +00:00
parent de2bf4ed11
commit d73939a8ed

View 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)) &&