Skip to content

Commit 4d73126

Browse files
scottmcmoli-obk
andauthored
Apply suggestions from code review
Co-authored-by: Oli Scherer <[email protected]>
1 parent 331a2fc commit 4d73126

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_mir_transform/src

1 file changed

+2
-2
lines changed

compiler/rustc_mir_transform/src/gvn.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,8 +1460,8 @@ impl<'body, 'tcx> VnState<'body, 'tcx> {
14601460
}
14611461
}
14621462

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

0 commit comments

Comments
 (0)