Fix build on sparc64-linux-gnu.

Differential Revision: https://reviews.llvm.org/D54030

llvm-svn: 346129
This commit is contained in:
Martin Liska 2018-11-05 12:27:43 +00:00
parent 233a02d0ed
commit 5f60861be7
1 changed files with 2 additions and 2 deletions

View File

@ -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];