Skip to content

Commit

Permalink
Remove black box inline asm fallback
Browse files Browse the repository at this point in the history
It isn't used anymore since the introduction of the black_box intrinsic
  • Loading branch information
bjorn3 committed Dec 4, 2021
1 parent f296311 commit df7f020
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/inline_asm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit df7f020

Please sign in to comment.