Skip to content

Commit f3a5992

Browse files
committed
Remove a newly detected unused unsafe, yay!
1 parent bd4dca9 commit f3a5992

File tree

1 file changed

+5
-7
lines changed
  • compiler/rustc_codegen_llvm/src

1 file changed

+5
-7
lines changed

compiler/rustc_codegen_llvm/src/abi.rs

+5-7
Original file line numberDiff line numberDiff line change
@@ -599,13 +599,11 @@ impl<'ll, 'tcx> FnAbiLlvmExt<'ll, 'tcx> for FnAbi<'tcx, Ty<'tcx>> {
599599
if self.conv == Conv::CCmseNonSecureCall {
600600
// This will probably get ignored on all targets but those supporting the TrustZone-M
601601
// extension (thumbv8m targets).
602-
unsafe {
603-
llvm::AddCallSiteAttrString(
604-
callsite,
605-
llvm::AttributePlace::Function,
606-
cstr::cstr!("cmse_nonsecure_call"),
607-
);
608-
}
602+
llvm::AddCallSiteAttrString(
603+
callsite,
604+
llvm::AttributePlace::Function,
605+
cstr::cstr!("cmse_nonsecure_call"),
606+
);
609607
}
610608
}
611609
}

0 commit comments

Comments
 (0)