diff options
author | Eric Fiselier <eric@efcs.ca> | 2018-10-11 00:18:54 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2018-10-11 00:18:54 +0000 |
commit | 51fbb2e70ae8a2a8df24845f7b6fdf4a1aebce4f (patch) | |
tree | ae4e56d7d7d88a5bcd47bc12bbde5e8da6ffcbe6 /libcxxabi/src/fallback_malloc.cpp | |
parent | 42f9868cd80d2e09c75f4642e0a66c7ecd38cf18 (diff) | |
download | bcm5719-llvm-51fbb2e70ae8a2a8df24845f7b6fdf4a1aebce4f.tar.gz bcm5719-llvm-51fbb2e70ae8a2a8df24845f7b6fdf4a1aebce4f.zip |
Update libc++abi's detection of aligned allocation after r344207.
llvm-svn: 344208
Diffstat (limited to 'libcxxabi/src/fallback_malloc.cpp')
-rw-r--r-- | libcxxabi/src/fallback_malloc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxxabi/src/fallback_malloc.cpp b/libcxxabi/src/fallback_malloc.cpp index bec9952596b..150a4bb608a 100644 --- a/libcxxabi/src/fallback_malloc.cpp +++ b/libcxxabi/src/fallback_malloc.cpp @@ -7,7 +7,7 @@ // //===----------------------------------------------------------------------===// -// Define _LIBCPP_BUILDING_LIBRARY to ensure _LIBCPP_HAS_NO_ALIGNED_ALLOCATION +// Define _LIBCPP_BUILDING_LIBRARY to ensure _LIBCPP_HAS_NO_LIBRARY_ALIGNED_ALLOCATION // is only defined when libc aligned allocation is not available. #define _LIBCPP_BUILDING_LIBRARY #include "fallback_malloc.h" @@ -209,7 +209,7 @@ void* __aligned_malloc_with_fallback(size_t size) { #if defined(_WIN32) if (void* dest = _aligned_malloc(size, alignof(__aligned_type))) return dest; -#elif defined(_LIBCPP_HAS_NO_ALIGNED_ALLOCATION) +#elif defined(_LIBCPP_HAS_NO_LIBRARY_ALIGNED_ALLOCATION) if (void* dest = std::malloc(size)) return dest; #else |