[compiler-rt] b937869 - [GWP-ASan] Add back some headers removed by IWYU.

Mitch Phillips via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 10 09:14:12 PST 2021


Author: Mitch Phillips
Date: 2021-02-10T09:13:45-08:00
New Revision: b93786907c54df4ca6658c569624a6460f72ce1e

URL: https://github.com/llvm/llvm-project/commit/b93786907c54df4ca6658c569624a6460f72ce1e
DIFF: https://github.com/llvm/llvm-project/commit/b93786907c54df4ca6658c569624a6460f72ce1e.diff

LOG: [GWP-ASan] Add back some headers removed by IWYU.

These headers are required for Android.

Reviewed By: eugenis

Differential Revision: https://reviews.llvm.org/D96374

Added: 
    

Modified: 
    compiler-rt/lib/gwp_asan/platform_specific/utilities_posix.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/gwp_asan/platform_specific/utilities_posix.cpp b/compiler-rt/lib/gwp_asan/platform_specific/utilities_posix.cpp
index 28fd22fa7606..338b5311c0e9 100644
--- a/compiler-rt/lib/gwp_asan/platform_specific/utilities_posix.cpp
+++ b/compiler-rt/lib/gwp_asan/platform_specific/utilities_posix.cpp
@@ -6,7 +6,10 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include <sys/cdefs.h> // IWYU pragma: keep (for __BIONIC__ macro)
+
 #ifdef __BIONIC__
+#include "gwp_asan/definitions.h"
 #include <stdlib.h>
 extern "C" GWP_ASAN_WEAK void android_set_abort_message(const char *);
 #else // __BIONIC__


        


More information about the llvm-commits mailing list