summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/lib/asan/asan_rtl.cc8
-rw-r--r--compiler-rt/make/platform/clang_darwin.mk2
2 files changed, 5 insertions, 5 deletions
diff --git a/compiler-rt/lib/asan/asan_rtl.cc b/compiler-rt/lib/asan/asan_rtl.cc
index 7fb3b92b0b0..e7dc04754ef 100644
--- a/compiler-rt/lib/asan/asan_rtl.cc
+++ b/compiler-rt/lib/asan/asan_rtl.cc
@@ -250,10 +250,10 @@ void GetPcSpBpAx(void *context,
*sp = ucontext->uc_mcontext->__ss.__rsp;
*ax = ucontext->uc_mcontext->__ss.__rax;
# else
- *pc = ucontext->uc_mcontext->__ss.__eip;
- *bp = ucontext->uc_mcontext->__ss.__ebp;
- *sp = ucontext->uc_mcontext->__ss.__esp;
- *ax = ucontext->uc_mcontext->__ss.__eax;
+ *pc = ucontext->uc_mcontext->ss.eip;
+ *bp = ucontext->uc_mcontext->ss.ebp;
+ *sp = ucontext->uc_mcontext->ss.esp;
+ *ax = ucontext->uc_mcontext->ss.eax;
# endif // __WORDSIZE
#else // assume linux
# if defined(__arm__)
diff --git a/compiler-rt/make/platform/clang_darwin.mk b/compiler-rt/make/platform/clang_darwin.mk
index 05014b9e342..cea3fa46c86 100644
--- a/compiler-rt/make/platform/clang_darwin.mk
+++ b/compiler-rt/make/platform/clang_darwin.mk
@@ -64,7 +64,7 @@ UniversalArchs.profile_ios := $(call CheckArches,i386 x86_64 armv6 armv7)
#
# Note that ASAN doesn't appear to currently support i386.
Configs += asan_osx
-UniversalArchs.asan_osx := $(call CheckArches,x86_64)
+UniversalArchs.asan_osx := $(call CheckArches,i386 x86_64)
# If RC_SUPPORTED_ARCHS is defined, treat it as a list of the architectures we
# are intended to support and limit what we try to build to that.
OpenPOWER on IntegriCloud