Skip to content

Commit 8201815

Browse files
fee1-deadLegNeato
authored andcommitted
add span to not overridden intrinsic bug
1 parent 26193fe commit 8201815

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/rustc_codegen_nvvm/src/intrinsic.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,8 @@ impl<'ll, 'tcx> IntrinsicCallBuilderMethods<'tcx> for Builder<'_, 'll, 'tcx> {
612612
// This piece of code was adapted from `rustc_codegen_cranelift`.
613613
let intrinsic = self.tcx.intrinsic(instance.def_id()).unwrap();
614614
if intrinsic.must_be_overridden {
615-
bug!(
615+
span_bug!(
616+
span,
616617
"intrinsic {} must be overridden by codegen_nvvm, but isn't",
617618
intrinsic.name,
618619
);

0 commit comments

Comments
 (0)