[compiler-rt] r333180 - [tsan] Fix a failure in test java_race_pc on AArch64 after r333071
Igor Kudrin via llvm-commits
llvm-commits at lists.llvm.org
Thu May 24 05:26:20 PDT 2018
Author: ikudrin
Date: Thu May 24 05:26:20 2018
New Revision: 333180
URL: http://llvm.org/viewvc/llvm-project?rev=333180&view=rev
Log:
[tsan] Fix a failure in test java_race_pc on AArch64 after r333071
Modified:
compiler-rt/trunk/test/tsan/test.h
Modified: compiler-rt/trunk/test/tsan/test.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/test.h?rev=333180&r1=333179&r2=333180&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/test.h (original)
+++ compiler-rt/trunk/test/tsan/test.h Thu May 24 05:26:20 2018
@@ -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__)
More information about the llvm-commits
mailing list