Skip to content

Commit 17ef676

Browse files
committed
Document assumption in X86FrameLowering::inlineStackProbe()
Resolve FIXME from r261504. Apparently bundled instructions are illegal here: http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20160215/334146.html git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@261507 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 8e7d9b7 commit 17ef676

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Target/X86/X86FrameLowering.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,8 @@ void X86FrameLowering::inlineStackProbe(MachineFunction &MF,
462462
}
463463

464464
if (ChkStkStub != nullptr) {
465-
// FIXME: MBBI is a bundle iterator. Should this be getBundleIterator()?
465+
assert(!ChkStkStub->isBundled() &&
466+
"Not expecting bundled instructions here");
466467
MachineBasicBlock::iterator MBBI =
467468
std::next(ChkStkStub->getInstrIterator());
468469
assert(std::prev(MBBI).operator==(ChkStkStub) &&

0 commit comments

Comments
 (0)