diff options
| author | Camille Gillot <gillot.camille@gmail.com> | 2024-07-06 12:45:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-06 12:45:23 +0200 |
| commit | 12edc8db876515e6922623006c9b8d0c34b15f51 (patch) | |
| tree | 921fb5b72178300adcdb12e635ffcedebee100e2 | |
| parent | b97f83b27fb23a0930630f23e3c113b8b542a43d (diff) | |
| download | rust-12edc8db876515e6922623006c9b8d0c34b15f51.tar.gz rust-12edc8db876515e6922623006c9b8d0c34b15f51.zip | |
Update compiler/rustc_mir_transform/src/gvn.rs
Co-authored-by: Michael Goulet <michael@errs.io>
| -rw-r--r-- | compiler/rustc_mir_transform/src/gvn.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_mir_transform/src/gvn.rs b/compiler/rustc_mir_transform/src/gvn.rs index 2c20c75df1f..1002746e553 100644 --- a/compiler/rustc_mir_transform/src/gvn.rs +++ b/compiler/rustc_mir_transform/src/gvn.rs @@ -1396,8 +1396,8 @@ fn op_to_prop_const<'tcx>( // by `GlobalAlloc::Memory`, so do fall through to copying if needed. // FIXME: find a way to treat this more uniformly (probably by fixing codegen) if let GlobalAlloc::Memory(alloc) = ecx.tcx.global_alloc(alloc_id) - // Transmuting a constant is just an offset in the allocation. If the alignement of the - // allocation is noe enough, fallback to copying into a properly aligned value. + // Transmuting a constant is just an offset in the allocation. If the alignment of the + // allocation is not enough, fallback to copying into a properly aligned value. && alloc.inner().align >= op.layout.align.abi { return Some(ConstValue::Indirect { alloc_id, offset }); |
