summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-02-22 02:32:35 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-02-22 02:32:35 +0000
commitd6de2a76127837d1eef55574563347ea8c0210a9 (patch)
tree20c6edf7328d3f872bcb9533593190ba6008d4ef /llvm
parente7f8fb98359a818eb0944461d3718898d792d5ce (diff)
downloadbcm5719-llvm-d6de2a76127837d1eef55574563347ea8c0210a9.tar.gz
bcm5719-llvm-d6de2a76127837d1eef55574563347ea8c0210a9.zip
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 llvm-svn: 261507
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/X86/X86FrameLowering.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86FrameLowering.cpp b/llvm/lib/Target/X86/X86FrameLowering.cpp
index 1856ee1820e..db802c3a7e3 100644
--- a/llvm/lib/Target/X86/X86FrameLowering.cpp
+++ b/llvm/lib/Target/X86/X86FrameLowering.cpp
@@ -462,7 +462,8 @@ void X86FrameLowering::inlineStackProbe(MachineFunction &MF,
}
if (ChkStkStub != nullptr) {
- // FIXME: MBBI is a bundle iterator. Should this be getBundleIterator()?
+ assert(!ChkStkStub->isBundled() &&
+ "Not expecting bundled instructions here");
MachineBasicBlock::iterator MBBI =
std::next(ChkStkStub->getInstrIterator());
assert(std::prev(MBBI).operator==(ChkStkStub) &&
OpenPOWER on IntegriCloud