Skip to content

Commit 7ec4de3

Browse files
committed
Remove deprecated LLVM-style inline assembly
1 parent 409276c commit 7ec4de3

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

src/base.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -749,18 +749,6 @@ fn codegen_stmt<'tcx>(
749749
| StatementKind::Retag { .. }
750750
| StatementKind::AscribeUserType(..) => {}
751751

752-
StatementKind::LlvmInlineAsm(asm) => {
753-
match asm.asm.asm.as_str().trim() {
754-
"" => {
755-
// Black box
756-
}
757-
_ => fx.tcx.sess.span_fatal(
758-
stmt.source_info.span,
759-
"Legacy `llvm_asm!` inline assembly is not supported. \
760-
Try using the new `asm!` instead.",
761-
),
762-
}
763-
}
764752
StatementKind::Coverage { .. } => fx.tcx.sess.fatal("-Zcoverage is unimplemented"),
765753
StatementKind::CopyNonOverlapping(inner) => {
766754
let dst = codegen_operand(fx, &inner.dst);

src/constant.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ pub(crate) fn mir_operand_get_const_val<'tcx>(
506506
{
507507
return None;
508508
}
509-
StatementKind::LlvmInlineAsm(_) | StatementKind::CopyNonOverlapping(_) => {
509+
StatementKind::CopyNonOverlapping(_) => {
510510
return None;
511511
} // conservative handling
512512
StatementKind::Assign(_)

0 commit comments

Comments
 (0)