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