From bc69cf972ce0d7f6657541060393b027e59be20c Mon Sep 17 00:00:00 2001 From: Marcin Koscielnicki Date: Tue, 26 Apr 2016 18:44:13 +0000 Subject: [sanitizers] [NFC] Add defines for the various PowerPC ABIs. Differential Revision: http://reviews.llvm.org/D19542 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@267586 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/asan/asan_report.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/asan') diff --git a/lib/asan/asan_report.cc b/lib/asan/asan_report.cc index 0d7d27a38..3eafe39d9 100644 --- a/lib/asan/asan_report.cc +++ b/lib/asan/asan_report.cc @@ -471,7 +471,7 @@ bool DescribeAddressIfStack(uptr addr, uptr access_size) { // previously. That's unfortunate, but I have no better solution, // especially given that the alloca may be from entirely different place // (e.g. use-after-scope, or different thread's stack). -#if defined(__powerpc64__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ +#if SANITIZER_PPC64V1 // On PowerPC64 ELFv1, the address of a function actually points to a // three-doubleword data structure with the first field containing // the address of the function's code. -- cgit v1.2.3