forked from OSchip/llvm-project
Add an assertion that would have made more sense to duraid
llvm-svn: 19704
This commit is contained in:
parent
3d95c14d94
commit
f840289291
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue