Skip to content

Commit f96dc2c

Browse files
committed
refactor(compiler): simplify alias slot matching
1 parent 28ee97c commit f96dc2c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

compiler/compiler.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,16 +319,13 @@ func (c *Compiler) buildCallParamAliasIndices(sig *callSignature, args []callArg
319319
continue
320320
}
321321

322-
for j, outType := range sig.FnInfo.OutTypes {
322+
for j := range sig.FnInfo.OutTypes {
323323
if j >= len(dest) {
324324
break
325325
}
326326
if dest[j].Value != arg.Name {
327327
continue
328328
}
329-
if !TypeEqual(sig.ParamTypes[i], outType) {
330-
continue
331-
}
332329
aliasIndices[aliasSlot] = j + 1
333330
break
334331
}

0 commit comments

Comments
 (0)