[PATCH] D40720: No -fsanitize=function warning when calling noexcept function through non-noexcept pointer in C++17
Stephan Bergmann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 21 04:58:21 PST 2017
sberg updated this revision to Diff 127863.
sberg added a comment.
As suggested, solve the issue instead by removing any "noexcept" from the typeinfo emitted for the -fsanitize=function checks.
https://reviews.llvm.org/D40720
Files:
clang/lib/CodeGen/CGExpr.cpp
clang/lib/CodeGen/CodeGenFunction.cpp
clang/lib/CodeGen/CodeGenTypes.cpp
clang/lib/CodeGen/CodeGenTypes.h
clang/lib/CodeGen/ItaniumCXXABI.cpp
clang/test/CodeGenCXX/ubsan-function-noexcept.cpp
compiler-rt/test/ubsan/TestCases/TypeCheck/Function/function.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40720.127863.patch
Type: text/x-patch
Size: 9125 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171221/d293860b/attachment-0001.bin>
More information about the cfe-commits
mailing list