Skip to content

Commit 12edc8d

Browse files
Update compiler/rustc_mir_transform/src/gvn.rs
Co-authored-by: Michael Goulet <[email protected]>
1 parent b97f83b commit 12edc8d

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
@@ -1396,8 +1396,8 @@ fn op_to_prop_const<'tcx>(
13961396
// by `GlobalAlloc::Memory`, so do fall through to copying if needed.
13971397
// FIXME: find a way to treat this more uniformly (probably by fixing codegen)
13981398
if let GlobalAlloc::Memory(alloc) = ecx.tcx.global_alloc(alloc_id)
1399-
// Transmuting a constant is just an offset in the allocation. If the alignement of the
1400-
// allocation is noe enough, fallback to copying into a properly aligned value.
1399+
// Transmuting a constant is just an offset in the allocation. If the alignment of the
1400+
// allocation is not enough, fallback to copying into a properly aligned value.
14011401
&& alloc.inner().align >= op.layout.align.abi
14021402
{
14031403
return Some(ConstValue::Indirect { alloc_id, offset });

0 commit comments

Comments
 (0)