Only check the value if it wasn't surely set by previous code
This commit is contained in:
parent
a4c20b3606
commit
37dea8a5cf
|
@ -1020,9 +1020,10 @@ void SymbolDatabase::createSymbolDatabaseNeedInitialization()
|
|||
scope->definedType->needInitialization = Type::True;
|
||||
else if (!unknown)
|
||||
scope->definedType->needInitialization = Type::False;
|
||||
|
||||
if (scope->definedType->needInitialization == Type::Unknown)
|
||||
unknowns++;
|
||||
else {
|
||||
if (scope->definedType->needInitialization == Type::Unknown)
|
||||
unknowns++;
|
||||
}
|
||||
}
|
||||
} else if (scope->type == Scope::eUnion && scope->definedType->needInitialization == Type::Unknown)
|
||||
scope->definedType->needInitialization = Type::True;
|
||||
|
|
Loading…
Reference in New Issue