diff options
author | Reid Kleckner <rnk@google.com> | 2016-10-13 15:48:48 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2016-10-13 15:48:48 +0000 |
commit | 468e793fea6b001b19c2fe972a4b1cf697a0554f (patch) | |
tree | f236b0ff2213626ef14b0d328a3c361a2fd1abc2 /clang/lib/CodeGen/CGBuiltin.cpp | |
parent | af5a28fe879e01b694c5faea6878461289938ab4 (diff) | |
download | bcm5719-llvm-468e793fea6b001b19c2fe972a4b1cf697a0554f.tar.gz bcm5719-llvm-468e793fea6b001b19c2fe972a4b1cf697a0554f.zip |
Fix for PR30687. Avoid dereferencing MBB.end().
We don't need to return a MachineInstr* from these stack probe insertion
calls anyway. If we ever need to add it back, we can return an iterator
instead.
Based on a patch by David Kreitzer
This bug is a consequence of
r279314 | dexonsmith | 2016-08-19 13:40:12 -0700 (Fri, 19 Aug 2016) | 110 lines
We hit the "Assertion `!NodePtr->isKnownSentinel()' failed" assertion,
but only when inserting a stack probe call at the end of an MBB, which
isn't necessarily a common situation.
Differential Revision: https://reviews.llvm.org/D25566
llvm-svn: 284130
Diffstat (limited to 'clang/lib/CodeGen/CGBuiltin.cpp')
0 files changed, 0 insertions, 0 deletions