diff options
author | Jason Molenda <jmolenda@apple.com> | 2014-11-08 05:38:17 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2014-11-08 05:38:17 +0000 |
commit | cf29675d9501cfff2a37acb8af3eefa6cbba19c1 (patch) | |
tree | f2bc714a1cd18a02e0972b281187fe56c6f3e974 /clang/lib/Parse/ParseExpr.cpp | |
parent | 13307f5f24299d35a0bf944153bc3d673fccadf6 (diff) | |
download | bcm5719-llvm-cf29675d9501cfff2a37acb8af3eefa6cbba19c1.tar.gz bcm5719-llvm-cf29675d9501cfff2a37acb8af3eefa6cbba19c1.zip |
Fix a corner case with the handling of noreturn functions.
If a noreturn function was the last function in a section,
we wouldn't correctly back up the saved-pc value into the
correct section leading to us showing the wrong function in
the backtrace.
Also add a backtrace test with an attempt to elicit this
particular layout. It happens to work out with clang -Os
but other compilers may not quite get the same layout I'm
getting at that opt setting. We'll still be exercising the
basic noreturn handling in the unwinder even if we don't get
one function at the very end of a section.
<rdar://problem/16051613>
llvm-svn: 221575
Diffstat (limited to 'clang/lib/Parse/ParseExpr.cpp')
0 files changed, 0 insertions, 0 deletions