Skip to content

Commit

Permalink
Fix build errors in Windows unwind information.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhuene committed Apr 13, 2020
1 parent f8c2fe6 commit f85840a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/jit/src/unwind/winx64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl UnwindRegistry {
// The unwind information should be immediately following the function
// with padding for 4 byte alignment
unsafe {
*entry.u.UnwindInfoAddress_mut() = ((entry.EndAddress + 3) & !3);
*entry.u.UnwindInfoAddress_mut() = (entry.EndAddress + 3) & !3;
}

self.functions.push(entry);
Expand All @@ -49,7 +49,7 @@ impl UnwindRegistry {
}

/// Publishes all registered functions.
pub fn publish(&mut self, isa: &dyn TargetIsa) -> Result<()> {
pub fn publish(&mut self, _isa: &dyn TargetIsa) -> Result<()> {
if self.published {
bail!("unwind registry has already been published");
}
Expand All @@ -68,7 +68,7 @@ impl UnwindRegistry {
if winnt::RtlAddFunctionTable(
self.functions.as_mut_ptr(),
self.functions.len() as u32,
base_address as u64,
self.base_address as u64,
) == 0
{
bail!("failed to register function table");
Expand Down

0 comments on commit f85840a

Please sign in to comment.