aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIgor Kudrin <ikudrin@accesssoftek.com>2018-05-24 12:26:20 +0000
committerIgor Kudrin <ikudrin@accesssoftek.com>2018-05-24 12:26:20 +0000
commit2e862c8e76891ac94f5bd05db9ed4d15b83fc2ed (patch)
treee23877e775e70a039d2f85506da86f6a362b6908 /test
parentc4a56172617c0759d449452b776b4f67c8276ee9 (diff)
[tsan] Fix a failure in test java_race_pc on AArch64 after r333071
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@333180 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/tsan/test.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tsan/test.h b/test/tsan/test.h
index bc4f7aad5..595590b58 100644
--- a/test/tsan/test.h
+++ b/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__)