Skip to content

Commit

Permalink
fmt and clippy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xunilrj committed May 1, 2024
1 parent 10171ad commit 6c90385
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sway-ir/src/optimize/dce.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ fn is_removable_store(
| InstOp::MemCopyVal { dst_val_ptr, .. }
| InstOp::Store { dst_val_ptr, .. } => {
// if the pointer comes from unknown sources, it is unsafe to delete the store
match dst_val_ptr.get_instruction(context).map(|x| &x.op) {
Some(InstOp::IntToPtr(_, _)) => return false,
_ => {}
if let Some(InstOp::IntToPtr(_, _)) =
dst_val_ptr.get_instruction(context).map(|x| &x.op)
{
return false;
}

let syms = get_symbols(context, dst_val_ptr);
Expand Down

0 comments on commit 6c90385

Please sign in to comment.