]> granicus.if.org Git - llvm/commit
[AVR] Fix bug which caused assertion errors for some FRMIDX instructions
authorDylan McKay <me@dylanmckay.io>
Tue, 4 Jul 2017 04:40:06 +0000 (04:40 +0000)
committerDylan McKay <me@dylanmckay.io>
Tue, 4 Jul 2017 04:40:06 +0000 (04:40 +0000)
commit285f30181c40356d268c9bd7875c585d5fd6ff65
tree193720c2fc72ee2b67da927dd77ffbb2b4f8b002
parent79bfbea46bb8ddff780fd278196b3028d6b62927
[AVR] Fix bug which caused assertion errors for some FRMIDX instructions

Previously, if a basic block ended with a FRMIDX instruction, we would
end up doing something like this.

*std::next(MBB.end())

Which would hit an error:

"Assertion `!NodePtr->isKnownSentinel()' failed."

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307057 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AVR/AVRRegisterInfo.cpp
test/CodeGen/AVR/frmidx-iterator-bug.ll [new file with mode: 0644]