You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Without this commit, the rewriter and the static introspection tool
crash if `meson.build` contains something like
```meson
if false
foo = not_defined
endif
```
or
```meson
if false
message(not_defined)
endif
```
While it could be argued, that you should not write stuff like this,
this used to raise a `MesonBugException`, which we have to fix.
Fixesmesonbuild#14667
mlog.warning(f"{path}:{self.current_node.lineno}:{self.current_node.colno} will always crash if executed, since a variable named `{var_name}` is not defined")
505
+
# We could add more advanced analysis of code referencing undefined
506
+
# variables, but it is probably not worth the effort and the
507
+
# complexity. So we do the simplest thing, returning an
508
+
# UnknownValue.
498
509
returnUnknownValue()
499
-
assertretisnotNone
500
510
returnret
501
511
502
512
# The function `node_to_runtime_value` takes a node of the ast as an
0 commit comments