Skip to content

Commit 259c425

Browse files
scottmcmoli-obk
andcommitted
Apply suggestions from code review
Co-authored-by: Oli Scherer <[email protected]>
1 parent 8dcc676 commit 259c425

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1450,8 +1450,8 @@ impl<'body, 'tcx> VnState<'body, 'tcx> {
14501450
}
14511451
}
14521452

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

0 commit comments

Comments
 (0)