Skip to content

Commit

Permalink
Fix multi capture detection when HEnum has name Closure
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao committed Jul 1, 2024
1 parent cabad4d commit a25c48c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hld/CodeGraph.hx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class CodeGraph {
}

// single captured pointer => passed directly
if( args.length >= 1 && args[0].hasIndex && !f.regs[0].match(HEnum({name:null})) )
if( args.length >= 1 && args[0].hasIndex && !f.regs[0].match(HEnum({constructs:[{name:""}]})) )
args[0].hasIndex = false;

if( args.length == nargs - 1 )
Expand Down

0 comments on commit a25c48c

Please sign in to comment.