mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +00:00
Fix typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210968 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -83,7 +83,7 @@ int AMDGPUFrameLowering::getFrameIndexOffset(const MachineFunction &MF,
|
|||||||
for (int i = MFI->getObjectIndexBegin(); i < UpperBound; ++i) {
|
for (int i = MFI->getObjectIndexBegin(); i < UpperBound; ++i) {
|
||||||
OffsetBytes = RoundUpToAlignment(OffsetBytes, MFI->getObjectAlignment(i));
|
OffsetBytes = RoundUpToAlignment(OffsetBytes, MFI->getObjectAlignment(i));
|
||||||
OffsetBytes += MFI->getObjectSize(i);
|
OffsetBytes += MFI->getObjectSize(i);
|
||||||
// Each regiter holds 4 bytes, so we must always align the offset to at
|
// Each register holds 4 bytes, so we must always align the offset to at
|
||||||
// least 4 bytes, so that 2 frame objects won't share the same register.
|
// least 4 bytes, so that 2 frame objects won't share the same register.
|
||||||
OffsetBytes = RoundUpToAlignment(OffsetBytes, 4);
|
OffsetBytes = RoundUpToAlignment(OffsetBytes, 4);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user