Apply suggestions from code review
Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
This commit is contained in:
parent
8dcc676c92
commit
259c425bd4
1 changed files with 2 additions and 2 deletions
|
@ -1450,8 +1450,8 @@ impl<'body, 'tcx> VnState<'body, 'tcx> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// PtrToPtr-then-Transmute can just transmute the original, so long as the
|
// Transmute-then-PtrToPtr can just transmute the original, so long as the
|
||||||
// PtrToPtr didn't change metadata (and thus the size of the pointer)
|
// PtrToPtr won't change metadata (and thus the size of the pointer)
|
||||||
if let PtrToPtr = kind
|
if let PtrToPtr = kind
|
||||||
&& let Value::Cast {
|
&& let Value::Cast {
|
||||||
kind: Transmute,
|
kind: Transmute,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue