[PATCH] D42644: [asan] Intercept std::rethrow_exception indirectly.
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 1 11:25:33 PST 2018
vitalybuka added a comment.
I would not worry about cross platform here. You can patch just Linux and whoever have access (and issues) on other platforms can send a patch with similar changes.
Mac should use libc++.
I'd put the test outside of Posix, and mark failing platforms as "// XFAIL:", temporarily, as we suppose to handle all of them.
================
Comment at: lib/asan/asan_interceptors.cc:327
+INTERCEPTOR(void, __cxa_rethrow_primary_exception, void *a) {
+ CHECK(REAL(__cxa_throw));
+ __asan_handle_no_return();
----------------
Should this be: CHECK(REAL(__cxa_rethrow_primary_exception)); ?
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D42644
More information about the llvm-commits
mailing list