Skip to content

Commit df7f020

Browse files
committed
Remove black box inline asm fallback
It isn't used anymore since the introduction of the black_box intrinsic
1 parent f296311 commit df7f020

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/inline_asm.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ pub(crate) fn codegen_inline_asm<'tcx>(
1818
) {
1919
// FIXME add .eh_frame unwind info directives
2020

21-
if template.is_empty() {
22-
// Black box
23-
return;
24-
} else if template[0] == InlineAsmTemplatePiece::String("int $$0x29".to_string()) {
21+
if template[0] == InlineAsmTemplatePiece::String("int $$0x29".to_string()) {
2522
let true_ = fx.bcx.ins().iconst(types::I32, 1);
2623
fx.bcx.ins().trapnz(true_, TrapCode::User(1));
2724
return;

0 commit comments

Comments
 (0)