[compiler-rt] 005c158 - [HWASAN] Fix Fuchsia link problem

Kirill Stoimenov via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 18 14:31:10 PST 2023


Author: Kirill Stoimenov
Date: 2023-01-18T22:30:27Z
New Revision: 005c15812195c1de6b14b27bebcc8c48892a92a2

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

LOG: [HWASAN] Fix Fuchsia link problem

Reviewed By: mysterymath

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

Added: 
    

Modified: 
    compiler-rt/lib/hwasan/hwasan_fuchsia.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/hwasan/hwasan_fuchsia.cpp b/compiler-rt/lib/hwasan/hwasan_fuchsia.cpp
index 858fac05af23c..cdee4f476cb0d 100644
--- a/compiler-rt/lib/hwasan/hwasan_fuchsia.cpp
+++ b/compiler-rt/lib/hwasan/hwasan_fuchsia.cpp
@@ -202,6 +202,12 @@ void InitializeOsSupport() {
 
 }  // namespace __hwasan
 
+namespace __lsan {
+
+bool UseExitcodeOnLeak() { return __hwasan::flags()->halt_on_error; }
+
+}  // namespace __lsan
+
 extern "C" {
 
 void *__sanitizer_before_thread_create_hook(thrd_t thread, bool detached,


        


More information about the llvm-commits mailing list