From df7f02072b64712e5322ea70675135cb1e20bf80 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sat, 4 Dec 2021 15:03:50 +0100 Subject: [PATCH] Remove black box inline asm fallback It isn't used anymore since the introduction of the black_box intrinsic --- src/inline_asm.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/inline_asm.rs b/src/inline_asm.rs index ba2699316da3..595e767cf710 100644 --- a/src/inline_asm.rs +++ b/src/inline_asm.rs @@ -18,10 +18,7 @@ pub(crate) fn codegen_inline_asm<'tcx>( ) { // FIXME add .eh_frame unwind info directives - if template.is_empty() { - // Black box - return; - } else if template[0] == InlineAsmTemplatePiece::String("int $$0x29".to_string()) { + if template[0] == InlineAsmTemplatePiece::String("int $$0x29".to_string()) { let true_ = fx.bcx.ins().iconst(types::I32, 1); fx.bcx.ins().trapnz(true_, TrapCode::User(1)); return;