Skip to content

Commit 3f52220

Browse files
var to def
1 parent 2ab0597 commit 3f52220

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PLUGINS/BACKEND/C/compile-expr-direct.lm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ compile-expr-direct := λ(: ctx FContext)(: term AST)(: stack-offset I64)(: used
2525
(set e (compile-expr( ctx t stack-offset Used )))
2626
) )
2727
( (TGround( 'Array_s (LCons( TAny (LCons( inner-tt LEOF )) )) )) (
28-
(let fterm (.lookup( var-to-def-index o-t ASTEOF )))
28+
(let fterm (var-to-def o-t))
2929
(set e (std-c-compile-call( ctx 'open_s fterm t )))
3030
))
3131
( (TGround( 'Array_s (LCons( array-length (LCons( inner-tt LEOF )) )) )) (
3232
(set e (compile-expr( ctx t stack-offset Used )))
3333
))
3434
))
3535
) (
36-
(let fterm (.lookup( var-to-def-index o-t ASTEOF )))
36+
(let fterm (var-to-def o-t))
3737
(set e (std-c-compile-call( ctx 'open_s fterm t )))
3838
))
3939
))
@@ -184,7 +184,7 @@ compile-expr-direct := λ(: ctx FContext)(: term AST)(: stack-offset I64)(: used
184184
(match f (
185185
()
186186
( (Var( fname _ )) (
187-
(let fterm (.lookup( var-to-def-index f ASTEOF )))
187+
(let fterm (var-to-def f))
188188
(set e (std-c-compile-call( ctx fname fterm a )))
189189
))
190190
( (Lit( fname _ )) (

0 commit comments

Comments
 (0)