[PATCH] D139377: [compiler-rt][hwasan] Let CheckAddressSized eventually call HandleTagMismatch on Fuchsia

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 7 14:12:35 PST 2022


vitalybuka added inline comments.


================
Comment at: compiler-rt/lib/hwasan/hwasan_checks.h:87
 __attribute__((always_inline)) static void SigTrap(uptr p, uptr size) {
-#if defined(__aarch64__)
+#if CAN_GET_REGISTERS
+  auto regs = GetRegisters();
----------------
Here are else #if SANITIZER_FUCHSIA is probably more appropriate
we are doing this not because regs are available, but because we can't do int3, fuchsia specific


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139377/new/

https://reviews.llvm.org/D139377



More information about the llvm-commits mailing list