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
The if isinstance(stmt, list) is in place to handle the case of a non-list expression (e.g. literal, variable reference) being used as a statement. The alternative would be to have the same check in every is_*_stmt function, in which case it would fall through to return self.gen_expr(stmt).instructions.
Admittedly, though, none of our testcases use this structure.
llama.lisp/src/backend/c-lisp.py
Line 137 in c79daf7
here, the
if isinstance(stmt, list)
andself.gen_expr(stmt)[0]
are redundant. I think we can remove them.The text was updated successfully, but these errors were encountered: