mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2026-12-06 18:08:36 +00:00
Merge remote-tracking branch 'origin/master' into fix/temp-count-if-condition
This commit is contained in:
@ -412,11 +412,11 @@ def process_stmt(
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user