Skip to content

Commit 1d058a0

Browse files
Fix cg_gcc merge
1 parent 2b5b43e commit 1d058a0

File tree

1 file changed

+5
-3
lines changed
  • compiler/rustc_codegen_gcc/src

1 file changed

+5
-3
lines changed

compiler/rustc_codegen_gcc/src/asm.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ impl<'a, 'gcc, 'tcx> AsmBuilderMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
114114
options: InlineAsmOptions,
115115
span: &[Span],
116116
instance: Instance<'_>,
117-
_catch_funclet: Option<(Self::BasicBlock, Self::BasicBlock, Option<&Self::Funclet>)>,
117+
dest: Option<Self::BasicBlock>,
118+
_catch_funclet: Option<(Self::BasicBlock, Option<&Self::Funclet>)>,
118119
) {
119120
if options.contains(InlineAsmOptions::MAY_UNWIND) {
120121
self.sess().dcx().create_err(UnwindingInlineAsm { span: span[0] }).emit();
@@ -537,8 +538,9 @@ impl<'a, 'gcc, 'tcx> AsmBuilderMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
537538
}
538539
if dest.is_none() && options.contains(InlineAsmOptions::NORETURN) {
539540
let builtin_unreachable = self.context.get_builtin_function("__builtin_unreachable");
540-
let builtin_unreachable: RValue<'gcc> =
541-
unsafe { std::mem::transmute(builtin_unreachable) };
541+
let builtin_unreachable: RValue<'gcc> = unsafe {
542+
std::mem::transmute(builtin_unreachable)
543+
};
542544
self.call(self.type_void(), None, None, builtin_unreachable, &[], None);
543545
}
544546

0 commit comments

Comments
 (0)