Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
  • Loading branch information
scottmcm and oli-obk committed Jan 9, 2025
1 parent 8dcc676 commit 259c425
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_mir_transform/src/gvn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1450,8 +1450,8 @@ impl<'body, 'tcx> VnState<'body, 'tcx> {
}
}

// PtrToPtr-then-Transmute can just transmute the original, so long as the
// PtrToPtr didn't change metadata (and thus the size of the pointer)
// Transmute-then-PtrToPtr can just transmute the original, so long as the
// PtrToPtr won't change metadata (and thus the size of the pointer)
if let PtrToPtr = kind
&& let Value::Cast {
kind: Transmute,
Expand Down

0 comments on commit 259c425

Please sign in to comment.