[compiler-rt] b4ac05d - Replace the equivalent code by UnionTableAddr
    Jianzhou Zhao via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Nov 19 12:16:34 PST 2020
    
    
  
Author: Jianzhou Zhao
Date: 2020-11-19T20:15:25Z
New Revision: b4ac05d76378aed7122d195b987c4b7c583c2cc6
URL: https://github.com/llvm/llvm-project/commit/b4ac05d76378aed7122d195b987c4b7c583c2cc6
DIFF: https://github.com/llvm/llvm-project/commit/b4ac05d76378aed7122d195b987c4b7c583c2cc6.diff
LOG: Replace the equivalent code by UnionTableAddr
UnionTableAddr is always inlined.
Reviewed-by: morehouse
Differential Revision: https://reviews.llvm.org/DD91758
Added: 
    
Modified: 
    compiler-rt/lib/dfsan/dfsan.cpp
Removed: 
    
################################################################################
diff  --git a/compiler-rt/lib/dfsan/dfsan.cpp b/compiler-rt/lib/dfsan/dfsan.cpp
index 36381c6896ae..db610857834c 100644
--- a/compiler-rt/lib/dfsan/dfsan.cpp
+++ b/compiler-rt/lib/dfsan/dfsan.cpp
@@ -144,8 +144,7 @@ int __dfsan::vmaSize;
 #endif
 
 static uptr UnusedAddr() {
-  return MappingArchImpl<MAPPING_UNION_TABLE_ADDR>()
-         + sizeof(dfsan_union_table_t);
+  return UnionTableAddr() + sizeof(dfsan_union_table_t);
 }
 
 static atomic_dfsan_label *union_table(dfsan_label l1, dfsan_label l2) {
        
    
    
More information about the llvm-commits
mailing list