Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Dead code elimination fails with start actions #43622

Open
MaryamZi opened this issue Nov 20, 2024 · 0 comments
Open

[Bug]: Dead code elimination fails with start actions #43622

MaryamZi opened this issue Nov 20, 2024 · 0 comments
Labels
Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Bug

Comments

@MaryamZi
Copy link
Member

Description

Note: tried with Java 21 changes.

Steps to Reproduce

public function main() {
    future<int> f = start foo();
}

function foo() returns int {
    int tot = 0;
    foreach int i in 0 ... 100 {
        tot += i;
    }
    return tot;
}

Looks like ASYNC_CALL is not included in io.ballerina.projects.UsedBIRNodeAnalyzer#ANALYZED_TERMINATOR_KINDS.

Affected Version(s)

No response

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

@MaryamZi MaryamZi added Type/Bug Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. labels Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Bug
Projects
None yet
Development

No branches or pull requests

1 participant