[compiler-rt] d1040c4 - [msan] Another try for powerpc fix after D131205

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 10 20:39:34 PDT 2022


Author: Vitaly Buka
Date: 2022-08-10T20:39:25-07:00
New Revision: d1040c455f44b414b36a459b7d79d808a99cda08

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

LOG: [msan] Another try for powerpc fix after D131205

Added: 
    

Modified: 
    compiler-rt/lib/msan/msan.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/msan/msan.cpp b/compiler-rt/lib/msan/msan.cpp
index bb2b7b8d1da8..c1c6805439ae 100644
--- a/compiler-rt/lib/msan/msan.cpp
+++ b/compiler-rt/lib/msan/msan.cpp
@@ -600,13 +600,6 @@ void __msan_set_alloca_origin4(void *a, uptr size, char *descr, uptr pc) {
     u32 idx = atomic_fetch_add(&NumStackOriginDescrs, 1, memory_order_relaxed);
     CHECK_LT(idx, kNumStackOriginDescrs);
     StackOriginDescr[idx] = descr + 4;
-#if SANITIZER_PPC64V1
-    // On PowerPC64 ELFv1, the address of a function actually points to a
-    // three-doubleword data structure with the first field containing
-    // the address of the function's code.
-    if (pc)
-      pc = *reinterpret_cast<uptr*>(pc);
-#endif
     StackOriginPC[idx] = pc;
     id = Origin::CreateStackOrigin(idx).raw_id();
     *id_ptr = id;


        


More information about the llvm-commits mailing list