mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 00:20:25 +08:00
Add missing assert
llvm-svn: 113365
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user