Add an assertion that would have made more sense to duraid

llvm-svn: 19704
This commit is contained in:
Chris Lattner 2005-01-19 21:32:07 +00:00
parent 3d95c14d94
commit f840289291
1 changed files with 3 additions and 1 deletions

View File

@ -220,7 +220,9 @@ void PEI::saveCallerSavedRegisters(MachineFunction &Fn) {
I = MBB->end(); --I;
for (unsigned i = 0, e = RegsToSave.size(); i != e; ++i) {
RegInfo->loadRegFromStackSlot(*MBB, I, RegsToSave[i],StackSlots[i]);
RegInfo->loadRegFromStackSlot(*MBB, I, RegsToSave[i], StackSlots[i]);
assert(I != MBB->begin() &&
"loadRegFromStackSlot didn't insert any code!");
--I; // Insert in reverse order
}
}