[Bug]: Duplicate BIRNonTerminator.TypeCast
instruction when passing arguments to a method with complex Varargs type parameter
#42492
Labels
Area/BIR
Compiler BIR related issues #Compiler
Team/CompilerFE
All issues related to Language implementation and Compiler, this exclude run times.
Type/Bug
Description
When passing arguments to a complex Varargs type parameter, BIRGen phase generate a duplicate
BIRNonTerminator.TypeCast
instruction. This duplicate instruction can be removed for better runtime performance.Steps to Reproduce
See the following example,
use
bal build --dump-bir
to see the BIR instructions,In bb0 following duplicate instructions can be found,
Same duplicate instructions can be found when debugging the BIRgen phase,
Affected Version(s)
Ballerina 2201.9.0 (Swan Lake Update 9) SNAPSHOT
OS, DB, other environment details and versions
No response
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: