Skip to content

Commit

Permalink
Fix -DCOMPILER_RT_HWASAN_WITH_INTERCEPTORS=OFF regression
Browse files Browse the repository at this point in the history
This applies the fix as suggested by Gelbpunkt in #64730,

Thanks to Florian Mayer for pointing out that my earlier patch D151262
had caused this regression.

Differential Revision: https://reviews.llvm.org/D158116
  • Loading branch information
thurstond committed Aug 16, 2023
1 parent 2f382bf commit 6f11750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler-rt/lib/hwasan/hwasan_interceptors.cpp
Expand Up @@ -520,12 +520,12 @@ void InitializeInterceptors() {
static int inited = 0;
CHECK_EQ(inited, 0);

# if HWASAN_WITH_INTERCEPTORS
InitializeCommonInterceptors();

(void)(read_iovec);
(void)(write_iovec);

# if HWASAN_WITH_INTERCEPTORS
# if defined(__linux__)
INTERCEPT_FUNCTION(__libc_longjmp);
INTERCEPT_FUNCTION(longjmp);
Expand Down

0 comments on commit 6f11750

Please sign in to comment.