Replace the equivalent code by UnionTableAddr
authorJianzhou Zhao <jianzhouzh@google.com>
Thu, 19 Nov 2020 04:39:25 +0000 (04:39 +0000)
committerJianzhou Zhao <jianzhouzh@google.com>
Thu, 19 Nov 2020 20:15:25 +0000 (20:15 +0000)
UnionTableAddr is always inlined.

Reviewed-by: morehouse
Differential Revision: https://reviews.llvm.org/DD91758

compiler-rt/lib/dfsan/dfsan.cpp

index 36381c6896ae741bf8dbe1d473cdbcd2e1121c72..db610857834c068153d8e571dacc548dfb3bfcff 100644 (file)
@@ -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) {