Skip to content

Commit caa9619

Browse files
author
Kostya Kortchinsky
committedSep 20, 2018
[sanitizer] Make __sanitizer::CheckFailed not public
Summary: 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. Reviewers: eugenis, rnk Reviewed By: eugenis, rnk Subscribers: kubamracek, delcypher, #sanitizers, timurrrr, rnk, llvm-commits Differential Revision: https://reviews.llvm.org/D52279 llvm-svn: 342651
1 parent 0ff51d8 commit caa9619

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed
 

‎compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h

-2
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,6 @@ typedef thread_return_t (THREAD_CALLING_CONV *thread_callback_t)(void* arg);
275275
// NOTE: Functions below must be defined in each run-time.
276276
void NORETURN Die();
277277

278-
// FIXME: No, this shouldn't be in the sanitizer interface.
279-
SANITIZER_INTERFACE_ATTRIBUTE
280278
void NORETURN CheckFailed(const char *file, int line, const char *cond,
281279
u64 v1, u64 v2);
282280

0 commit comments

Comments
 (0)
Please sign in to comment.