Skip to content

Commit 3cf2a69

Browse files
committed
bug!-ify unwrap
1 parent 78ebaa8 commit 3cf2a69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_llvm/src/intrinsic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ impl IntrinsicCallMethods<'tcx> for Builder<'a, 'll, 'tcx> {
347347
ast::LlvmAsmDialect::Att,
348348
&[span],
349349
)
350-
.unwrap();
350+
.unwrap_or_else(|| bug!("failed to generate inline asm call for `black_box`"));
351351

352352
// We have copied the value to `result` already.
353353
return;

0 commit comments

Comments
 (0)