diff options
| author | Ralf Jung <post@ralfj.de> | 2025-06-26 10:24:33 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-06-26 10:28:15 +0200 |
| commit | 7de39f55dd888dd81e436ac100ac563206844c6c (patch) | |
| tree | 71d59af9abf1b30882e0fa7dfc7d2d336fa38a48 /compiler/rustc_mir_transform/src | |
| parent | 3790eff4d40288de2e467dab02608815102ada7f (diff) | |
| download | rust-7de39f55dd888dd81e436ac100ac563206844c6c.tar.gz rust-7de39f55dd888dd81e436ac100ac563206844c6c.zip | |
make size_and_align_of_mplace work on all projectable
Diffstat (limited to 'compiler/rustc_mir_transform/src')
| -rw-r--r-- | compiler/rustc_mir_transform/src/gvn.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/gvn.rs b/compiler/rustc_mir_transform/src/gvn.rs index bda71ceaa55..6d6c72106ba 100644 --- a/compiler/rustc_mir_transform/src/gvn.rs +++ b/compiler/rustc_mir_transform/src/gvn.rs @@ -1625,7 +1625,7 @@ fn op_to_prop_const<'tcx>( // If this constant is already represented as an `Allocation`, // try putting it into global memory to return it. if let Either::Left(mplace) = op.as_mplace_or_imm() { - let (size, _align) = ecx.size_and_align_of_mplace(&mplace).discard_err()??; + let (size, _align) = ecx.size_and_align_of_val(&mplace).discard_err()??; // Do not try interning a value that contains provenance. // Due to https://github.com/rust-lang/rust/issues/79738, doing so could lead to bugs. |
