summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/test/tsan/test.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/tsan/test.h b/compiler-rt/test/tsan/test.h
index bc4f7aad55f..595590b58ce 100644
--- a/compiler-rt/test/tsan/test.h
+++ b/compiler-rt/test/tsan/test.h
@@ -56,7 +56,7 @@ unsigned long long monotonic_clock_ns() {
#endif
//The const kPCInc must be in sync with StackTrace::GetPreviousInstructionPc
-#if defined(__powerpc64__)
+#if defined(__powerpc64__) || defined(__arm__) || defined(__aarch64__)
// PCs are always 4 byte aligned.
const int kPCInc = 4;
#elif defined(__sparc__) || defined(__mips__)
OpenPOWER on IntegriCloud