summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-11-05 12:27:43 +0000
committerMartin Liska <mliska@suse.cz>2018-11-05 12:27:43 +0000
commit5f60861be706191866341c52b6ce5bbcb1c024ed (patch)
tree820973436b066fd47c6909807df0b2c6de47e7d0 /compiler-rt/lib/sanitizer_common
parent233a02d0ede004f5550d812646b4047d92b7a883 (diff)
downloadbcm5719-llvm-5f60861be706191866341c52b6ce5bbcb1c024ed.tar.gz
bcm5719-llvm-5f60861be706191866341c52b6ce5bbcb1c024ed.zip
Fix build on sparc64-linux-gnu.
Differential Revision: https://reviews.llvm.org/D54030 llvm-svn: 346129
Diffstat (limited to 'compiler-rt/lib/sanitizer_common')
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_linux.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
index 49040e4def3..d6ffc7081b7 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
@@ -1946,14 +1946,14 @@ static void GetPcSpBp(void *context, uptr *pc, uptr *sp, uptr *bp) {
#elif defined(__sparc__)
ucontext_t *ucontext = (ucontext_t*)context;
uptr *stk_ptr;
-# if defined (__sparcv9)
+# if defined(__sparcv9) || defined (__arch64__)
# ifndef MC_PC
# define MC_PC REG_PC
# endif
# ifndef MC_O6
# define MC_O6 REG_O6
# endif
-# ifdef SANITIZER_SOLARIS
+# if SANITIZER_SOLARIS
# define mc_gregs gregs
# endif
*pc = ucontext->uc_mcontext.mc_gregs[MC_PC];
OpenPOWER on IntegriCloud