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

pattern matching on a reference to an enum results in an llvm broken module error #3500

Closed
erickt opened this issue Sep 15, 2012 · 1 comment
Labels
A-codegen Area: Code generation I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Milestone

Comments

@erickt
Copy link
Contributor

erickt commented Sep 15, 2012

fn main() {
    let x = &Some(1);
    match x {
        &Some(_) => (),
        &None => (),
    }
}

Errors out with:

Basic Block in function '_ZN4main17_aaf9e7b54e88829e3_00E' does not have terminator!
label %8
LLVM ERROR: Broken module, no Basic Block terminator!
@catamorphism
Copy link
Contributor

Works as of d2ad028

bors pushed a commit to rust-lang-ci/rust that referenced this issue May 15, 2021
fix not to delete semicolon for macro with square brackets
RalfJung pushed a commit to RalfJung/rust that referenced this issue Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-codegen Area: Code generation I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

2 participants