mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 15:22:15 +00:00
- when simplifying a non-constant expression, leave any identifier that cannot be trivially simplified to a constant alone. It is better to defer resolution to more context-aware code for those.
This commit is contained in:
parent
847b8c45ef
commit
2c7c04e803
1 changed files with 1 additions and 1 deletions
|
@ -1009,7 +1009,7 @@ ZCC_Expression *ZCCCompiler::IdentifyIdentifier(ZCC_ExprID *idnode, PSymbolTable
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if (SimplifyingConstant) // leave unknown identifiers alone when simplifying non-constants. It is impossible to know what they are here.
|
||||||
{
|
{
|
||||||
// Also handle line specials.
|
// Also handle line specials.
|
||||||
// To call this like a function this needs to be done differently, but for resolving constants this is ok.
|
// To call this like a function this needs to be done differently, but for resolving constants this is ok.
|
||||||
|
|
Loading…
Reference in a new issue