1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Add missing assert

llvm-svn: 113365
This commit is contained in:
Jim Grosbach 2010-09-08 17:05:45 +00:00
parent 001e8a9350
commit 5411e69cbd

View File

@ -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;
}