diff options
author | Yvan Roux <yvan.roux@linaro.org> | 2018-08-16 11:38:09 +0000 |
---|---|---|
committer | Yvan Roux <yvan.roux@linaro.org> | 2018-08-16 11:38:09 +0000 |
commit | d8f100a6f547875065c2ff0828c14fb6fbd0c175 (patch) | |
tree | 67e4ee50488b0592525fbdad9c1e30214795f60c /libcxxabi | |
parent | fdc4647ca37c64ba60207b9ec3f412779aa894aa (diff) |
[libcxxabi] Fix test_exception_address_alignment test for ARM
Check _LIBCXXABI_ARM_EHABI macro instead of libunwind version.
Fixes PR34182
Differential revision: https://reviews.llvm.org/D50170
llvm-svn: 339865
Diffstat (limited to 'libcxxabi')
-rw-r--r-- | libcxxabi/test/test_exception_address_alignment.pass.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxxabi/test/test_exception_address_alignment.pass.cpp b/libcxxabi/test/test_exception_address_alignment.pass.cpp index 138fb4daf461..5d36659f4aee 100644 --- a/libcxxabi/test/test_exception_address_alignment.pass.cpp +++ b/libcxxabi/test/test_exception_address_alignment.pass.cpp @@ -20,6 +20,7 @@ #include <cstdint> #include <cassert> +#include <__cxxabi_config.h> #include <unwind.h> @@ -27,7 +28,7 @@ struct __attribute__((aligned)) AlignedType {}; // EHABI : 8-byte aligned // Itanium: Largest supported alignment for the system -#if defined(_LIBUNWIND_ARM_EHABI) +#if defined(_LIBCXXABI_ARM_EHABI) # define EXPECTED_ALIGNMENT 8 #else # define EXPECTED_ALIGNMENT alignof(AlignedType) |