Skip to content

Commit 67c4bd0

Browse files
committed
1 parent f1e1046 commit 67c4bd0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

compiler/codegen/src/compile.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2118,15 +2118,16 @@ impl Compiler {
21182118
Name { id, .. } => self.load_name(id)?,
21192119
Lambda { args, body } => {
21202120
let prev_ctx = self.ctx;
2121+
2122+
let name = "<lambda>".to_owned();
2123+
let mut funcflags = self.enter_function(&name, args)?;
2124+
21212125
self.ctx = CompileContext {
21222126
loop_data: Option::None,
21232127
in_class: prev_ctx.in_class,
21242128
func: FunctionContext::Function,
21252129
};
21262130

2127-
let name = "<lambda>".to_owned();
2128-
let mut funcflags = self.enter_function(&name, args)?;
2129-
21302131
self.current_codeinfo()
21312132
.constants
21322133
.insert_full(ConstantData::None);

0 commit comments

Comments
 (0)