From a25c48c10e1620c5c471cda31312b9c4d7f87bf3 Mon Sep 17 00:00:00 2001 From: Yuxiao Mao Date: Mon, 1 Jul 2024 12:55:39 +0200 Subject: [PATCH] Fix multi capture detection when HEnum has name Closure --- hld/CodeGraph.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hld/CodeGraph.hx b/hld/CodeGraph.hx index aa0a54b..4919043 100644 --- a/hld/CodeGraph.hx +++ b/hld/CodeGraph.hx @@ -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 )