Merge branch 'master' into feat/integer-signedness

This commit is contained in:
Pragyansh Chaturvedi
2026-09-24 17:09:54 +05:30
committed by GitHub
15 changed files with 317 additions and 18 deletions

View File

@ -406,11 +406,11 @@ def process_stmt(
func, builder, stmt, local_sym_tab, ret_type, compilation_context
)
else:
# Silently dropping a statement makes the program mean something other
# than what it says, so say so.
logger.warning(
f"Unsupported statement on line {getattr(stmt, 'lineno', '?')}, "
f"ignored: {type(stmt).__name__}"
# Dropping a statement makes the program mean something other than what
# it says (a loop compiles to nothing), so refuse rather than warn.
raise NotImplementedError(
f"Unsupported statement on line {getattr(stmt, 'lineno', '?')}: "
f"{type(stmt).__name__}"
)
return did_return