rustc_codegen_gcc: proper check for may_unwind
This commit is contained in:
parent
fb35cee709
commit
021a8d80eb
1 changed files with 2 additions and 2 deletions
|
@ -118,8 +118,8 @@ impl<'a, 'gcc, 'tcx> AsmBuilderMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
fn codegen_inline_asm(&mut self, template: &[InlineAsmTemplatePiece], rust_operands: &[InlineAsmOperandRef<'tcx, Self>], options: InlineAsmOptions, span: &[Span], _instance: Instance<'_>, dest_catch_funclet: Option<(Self::BasicBlock, Self::BasicBlock, Option<&Self::Funclet>)>) {
|
fn codegen_inline_asm(&mut self, template: &[InlineAsmTemplatePiece], rust_operands: &[InlineAsmOperandRef<'tcx, Self>], options: InlineAsmOptions, span: &[Span], _instance: Instance<'_>, _dest_catch_funclet: Option<(Self::BasicBlock, Self::BasicBlock, Option<&Self::Funclet>)>) {
|
||||||
if dest_catch_funclet.is_some() {
|
if options.contains(InlineAsmOptions::MAY_UNWIND) {
|
||||||
self.sess()
|
self.sess()
|
||||||
.struct_span_err(span[0], "GCC backend does not support unwinding from inline asm")
|
.struct_span_err(span[0], "GCC backend does not support unwinding from inline asm")
|
||||||
.emit();
|
.emit();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue