Add missing assert

llvm-svn: 113365
This commit is contained in:
Jim Grosbach 2010-09-08 17:05:45 +00:00
parent 1be27f0929
commit 53aa5e31e1
1 changed files with 4 additions and 1 deletions

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