diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-12-04 15:03:50 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-12-04 15:03:50 +0100 |
| commit | df7f02072b64712e5322ea70675135cb1e20bf80 (patch) | |
| tree | 13b9adc3a20c99cc524747111b1b80f1b80884f9 | |
| parent | f296311925cc8f88cb136bed06bcbb77e3027f93 (diff) | |
| download | rust-df7f02072b64712e5322ea70675135cb1e20bf80.tar.gz rust-df7f02072b64712e5322ea70675135cb1e20bf80.zip | |
Remove black box inline asm fallback
It isn't used anymore since the introduction of the black_box intrinsic
| -rw-r--r-- | src/inline_asm.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/inline_asm.rs b/src/inline_asm.rs index ba2699316da..595e767cf71 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; |
