Skip to content

Commit bac4ec5

Browse files
Update ast_helpers.py
1 parent be1a4e3 commit bac4ec5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypyc/irbuild/ast_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def is_borrow_friendly_expr(self: IRBuilder, expr: Expression) -> bool:
109109
# Literals are immortal and can always be borrowed
110110
return True
111111
if (
112-
isinstance(expr, (UnaryExpr, OpExpr, NameExpr, MemberExpr))
112+
isinstance(expr, (UnaryExpr, OpExpr, NameExpr, MemberExpr, CallExpr))
113113
and constant_fold_expr(self, expr) is not None
114114
):
115115
# Literal expressions are similar to literals

0 commit comments

Comments
 (0)