Skip to content

Commit 3ae3af3

Browse files
committed
codegen: stop treating core precondition_check as panic entry point
1 parent 5795f08 commit 3ae3af3

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

  • crates/rustc_codegen_spirv/src/codegen_cx

crates/rustc_codegen_spirv/src/codegen_cx/declare.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,6 @@ impl<'tcx> CodegenCx<'tcx> {
230230
}
231231
let is_nonlocal = !def_id.is_local();
232232
let is_nonlocal_core = is_nonlocal && self.tcx.crate_name(def_id.krate) == sym::core;
233-
if is_nonlocal_core && demangled_symbol_name.ends_with("::precondition_check") {
234-
self.panic_entry_points.borrow_mut().insert(def_id);
235-
}
236233
let is_spirv_std_byte_addressable_bounds_check = is_nonlocal
237234
&& self.tcx.def_path_str(def_id) == "spirv_std::byte_addressable_buffer::bounds_check";
238235
if (is_nonlocal_core && demangled_symbol_name.ends_with("::bounds_check"))

0 commit comments

Comments
 (0)