[PATCH] D52279: [sanitizer] Make __sanitizer::CheckFailed not public

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 19 14:08:51 PDT 2018


cryptoad created this revision.
cryptoad added reviewers: eugenis, rnk.
Herald added subscribers: Sanitizers, delcypher, kubamracek.

As far as I can tell, there is no reason why `__sanitizer::CheckFailed` should
be exported. Looking back in time, it was added with the FIXME with the
following by @timurrrr:

  [*San/RTL] Fix minor breakage
  Grumbling: this hasn't been caught by running 'make check-{a,l,t}san check-sanitizer'

I can't find any detail about the breakage, all tests seem to work for me, so
maybe Windows (@rnk?) or something I have no setup for.

The reason to make it private (past the FIXME) is that Scudo defines its own
(without callback) and I am trying to make the .so be loadable with the UBsan
one (that has its own public `CheckFailed`) with as little drama as possible.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D52279

Files:
  lib/sanitizer_common/sanitizer_internal_defs.h


Index: lib/sanitizer_common/sanitizer_internal_defs.h
===================================================================
--- lib/sanitizer_common/sanitizer_internal_defs.h
+++ lib/sanitizer_common/sanitizer_internal_defs.h
@@ -275,8 +275,6 @@
 // NOTE: Functions below must be defined in each run-time.
 void NORETURN Die();
 
-// FIXME: No, this shouldn't be in the sanitizer interface.
-SANITIZER_INTERFACE_ATTRIBUTE
 void NORETURN CheckFailed(const char *file, int line, const char *cond,
                           u64 v1, u64 v2);
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52279.166183.patch
Type: text/x-patch
Size: 539 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180919/ba948e76/attachment.bin>


More information about the llvm-commits mailing list