mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Add missing assert
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113365 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e9dcd033e4
commit
6b53834d5f
@ -1057,8 +1057,11 @@ ARMBaseRegisterInfo::ResolveFrameIndexReference(const MachineFunction &MF,
|
||||
if (isFixed) {
|
||||
FrameReg = getFrameRegister(MF);
|
||||
Offset = FPOffset;
|
||||
} else if (MFI->hasVarSizedObjects())
|
||||
} else if (MFI->hasVarSizedObjects()) {
|
||||
assert(hasBasePointer(MF) &&
|
||||
"VLAs and dynamic stack alignment, but missing base pointer!");
|
||||
FrameReg = BasePtr;
|
||||
}
|
||||
return Offset;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user