[libcxx-commits] [PATCH] D95827: Avoid cast<T*> before T is constructed to pacify CFI checks
Reid Kleckner via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Feb 2 11:56:26 PST 2021
rnk added a comment.
In D95827#2536611 <https://reviews.llvm.org/D95827#2536611>, @ldionne wrote:
> We could add `_LIBCPP_NO_CFI` on the problematic method, like we do for `std::addressof`. Can you try that out?
Yep, it works.
I haven't put together a test for this. Are there existing tests for CFI or sanitizers that I could use to build a test for this?
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
More information about the libcxx-commits