1
Fork 0

Apply suggestions from code review

Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
This commit is contained in:
scottmcm 2024-12-08 05:26:19 +00:00 committed by Scott McMurray
parent 8dcc676c92
commit 259c425bd4

View file

@ -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,