Skip to content

Commit

Permalink
Merge pull request #2845 from bnjbvr/fix-unwind-win64-old-backend
Browse files Browse the repository at this point in the history
Generate unwind information on Win64 with the old backend
  • Loading branch information
bnjbvr authored Apr 16, 2021
2 parents ba73b45 + 8ab3511 commit f26449f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cranelift/codegen/src/isa/x86/unwind/winx64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

use crate::ir::Function;
use crate::isa::x86::registers::{FPR, GPR};
use crate::isa::{unwind::winx64::UnwindInfo, CallConv, RegUnit, TargetIsa};
use crate::isa::{unwind::winx64::UnwindInfo, RegUnit, TargetIsa};
use crate::result::CodegenResult;

pub(crate) fn create_unwind_info(
func: &Function,
isa: &dyn TargetIsa,
) -> CodegenResult<Option<UnwindInfo>> {
// Only Windows fastcall is supported for unwind information
if func.signature.call_conv != CallConv::WindowsFastcall || func.prologue_end.is_none() {
if !func.signature.call_conv.extends_windows_fastcall() || func.prologue_end.is_none() {
return Ok(None);
}

Expand Down

0 comments on commit f26449f

Please sign in to comment.