[panic] panic! called when "reference types found but safepoints not enabled" #1156
Labels
bug
Incorrect behavior in the current implementation that needs fixing
cranelift:E-easy
Issues suitable for newcomers to investigate, including Rust newcomers!
cranelift
Issues related to the Cranelift code generator
What are the steps to reproduce the issue? Can you include a CLIF test case, ideally reduced with the
bugpoint
clif-util command?Download panic_ref_type_not_enabled.zip
What do you expect to happen? What does actually happen? Does it panic, and if so, with which assertion?
I would expect an error to be through instead of panicking. There is a call to the
panic!
macro here:https://github.com/bytecodealliance/cranelift/blob/c54fc845c45b2929bdf36635c90a363e380cf805/cranelift-codegen/src/regalloc/context.rs#L215-L221
Which Cranelift version / commit hash / branch are you using?
Cranelift version :
commit hash: c54fc84
branch: master
If relevant, can you include some extra information about your environment? (Rust version, operating system, architecture...)
More details:
Execution with verbosity and print:
The text was updated successfully, but these errors were encountered: