We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8ba1c4 commit 90330f7Copy full SHA for 90330f7
ir/pointer.cpp
@@ -170,7 +170,7 @@ expr Pointer::isConstGlobal() const {
170
auto generic = bid.uge(has_null_block) &&
171
expr(num_consts_src > 0) &&
172
bid.ule(num_consts_src + has_null_block - 1);
173
- auto tgt = bid.uge(num_nonlocals_src) && bid.ule(num_nonlocals - 1);
+ auto tgt = num_nonlocals_src == 0 ? expr(true) : bid.ugt(num_nonlocals_src-1);
174
return !isLocal() && (generic || tgt);
175
}
176
0 commit comments