Stream: git-cranelift

Topic: cranelift / Issue #922 How do I negate a bool?


view this post on Zulip GitHub (Feb 28 2020 at 23:26):

alexcrichton transferred Issue #922:

I'm trying to compile this simple C program:

int main() {
    return !1;
}

I'll spare you the parsing, what my program does after implicit casts is:

This gives me a verifier error: VerifierError { location: inst2, message: "v2 is a real GPR value defined by a ghost instruction" }.

What, if anything, am I doing wrong? I see that rustc_codegen_cranelift extends the bool to an I32, do I need to do that?


Last updated: Nov 22 2024 at 16:03 UTC