[UBSan] Get pc/bp for stack unwinding as early as possible.
authorAlexey Samsonov <vonosmas@gmail.com>
Tue, 29 Jul 2014 23:22:41 +0000 (23:22 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Tue, 29 Jul 2014 23:22:41 +0000 (23:22 +0000)
commit20c5c7b723cd3b8c5705f529ca6071ec085d7164
tree2c15ee6e3de89b4d31dc96576587d2987e6de644
parent99ef10f9156e818ca85da2421f8b3cb776afba87
[UBSan] Get pc/bp for stack unwinding as early as possible.

This will ensure that stack frames in error reports will not
contain internal UBSan failures, and frame #0 will be the
actual place in the program where the error happens.

llvm-svn: 214245
compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.h
compiler-rt/lib/ubsan/ubsan_diag.h
compiler-rt/lib/ubsan/ubsan_handlers_cxx.cc