Closed
Description
struct A;
impl Drop for A {
fn drop(&mut self) {
println!("A");
}
}
fn main() {
let a = A;
std::sync::atomic::spin_loop_hint();
std::mem::forget(a);
}
$ rustc -Copt-level=0 -Zmir-opt-level=2 a.rs
Cannot invoke an intrinsic other than donothing, patchpoint, statepoint, coro_resume or coro_destroy
invoke void @llvm.x86.sse2.pause()
to label %15 unwind label %16
Cannot invoke an intrinsic other than donothing, patchpoint, statepoint, coro_resume or coro_destroy
invoke void @llvm.x86.sse2.pause()
to label %15 unwind label %16
in function _ZN1a4main17h5a7c080779719c70E
LLVM ERROR: Broken function found, compilation aborted!