[compiler-rt] af12f72 - [HWASAN] Added empty WordIsPoisoned for LSAN support.
    Kirill Stoimenov via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Jan 10 09:36:42 PST 2023
    
    
  
Author: Kirill Stoimenov
Date: 2023-01-10T17:36:31Z
New Revision: af12f726a086235ed9ec132dd24da90c029c8e5f
URL: https://github.com/llvm/llvm-project/commit/af12f726a086235ed9ec132dd24da90c029c8e5f
DIFF: https://github.com/llvm/llvm-project/commit/af12f726a086235ed9ec132dd24da90c029c8e5f.diff
LOG: [HWASAN] Added empty WordIsPoisoned for LSAN support.
Currently it is just an empty implementation to allow the project to link.
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D141147
Added: 
    
Modified: 
    compiler-rt/lib/hwasan/hwasan_poisoning.cpp
Removed: 
    
################################################################################
diff  --git a/compiler-rt/lib/hwasan/hwasan_poisoning.cpp b/compiler-rt/lib/hwasan/hwasan_poisoning.cpp
index 5aafdb1884b5c..a4e5935754a8a 100644
--- a/compiler-rt/lib/hwasan/hwasan_poisoning.cpp
+++ b/compiler-rt/lib/hwasan/hwasan_poisoning.cpp
@@ -26,3 +26,11 @@ uptr TagMemory(uptr p, uptr size, tag_t tag) {
 }
 
 }  // namespace __hwasan
+
+// --- Implementation of LSan-specific functions --- {{{1
+namespace __lsan {
+bool WordIsPoisoned(uptr addr) {
+  // Fixme: implement actual tag checking.
+  return false;
+}
+}  // namespace __lsan
        
    
    
More information about the llvm-commits
mailing list