Initilize var.def.cls to unknown.

This commit is contained in:
scturtle 2017-12-24 09:17:02 +08:00 committed by Jacob Dufault
parent cb7ccbe543
commit f10521372b

View File

@ -387,7 +387,7 @@ struct VarDefDefinitionData {
// Type which declares this one.
optional<TypeId> declaring_type;
VarClass cls;
VarClass cls = VarClass::Unknown;
bool is_local() const { return cls == VarClass::Local; }
bool is_macro() const { return cls == VarClass::Macro; }