[msan] Another try for powerpc fix after D131205
authorVitaly Buka <vitalybuka@google.com>
Thu, 11 Aug 2022 03:38:55 +0000 (20:38 -0700)
committerVitaly Buka <vitalybuka@google.com>
Thu, 11 Aug 2022 03:39:25 +0000 (20:39 -0700)
compiler-rt/lib/msan/msan.cpp

index bb2b7b8..c1c6805 100644 (file)
@@ -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;