[PATCH] D120362: [sanitizer][sancov] Refactor GetNextInstructionPc/GetPreviousInstructionPc
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 22 16:06:34 PST 2022
vitalybuka accepted this revision.
vitalybuka added a comment.
This revision is now accepted and ready to land.
Maybe split into 3 patches for easier bisecting/reverting as usually fuzzers include all 3 components?
================
Comment at: compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.cpp:49
return 0;
-#else
+#elif defined(__i386__) || defined(__x86_64__) || defined(_M_IX86) || defined(_M_X64)
return pc + 1;
----------------
same
================
Comment at: compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.h:101
return pc - 2;
-#else
+#elif defined(__i386__) || defined(__x86_64__) || defined(_M_IX86) || defined(_M_X64)
return pc - 1;
----------------
SANITIZER_I386 || SANITIZER_X64
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120362/new/
https://reviews.llvm.org/D120362
More information about the llvm-commits
mailing list