[libcxxabi] r344215 - Use C++03 friendly version of alignof
Eric Fiselier
eric at efcs.ca
Wed Oct 10 20:01:15 PDT 2018
Author: ericwf
Date: Wed Oct 10 20:01:14 2018
New Revision: 344215
URL: http://llvm.org/viewvc/llvm-project?rev=344215&view=rev
Log:
Use C++03 friendly version of alignof
Modified:
libcxxabi/trunk/src/fallback_malloc.cpp
Modified: libcxxabi/trunk/src/fallback_malloc.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/fallback_malloc.cpp?rev=344215&r1=344214&r2=344215&view=diff
==============================================================================
--- libcxxabi/trunk/src/fallback_malloc.cpp (original)
+++ libcxxabi/trunk/src/fallback_malloc.cpp Wed Oct 10 20:01:14 2018
@@ -216,7 +216,7 @@ void* __aligned_malloc_with_fallback(siz
if (size == 0)
size = 1;
void* dest;
- if (::posix_memalign(&dest, alignof(__aligned_type), size) == 0)
+ if (::posix_memalign(&dest, __alignof(__aligned_type), size) == 0)
return dest;
#endif
return fallback_malloc(size);
More information about the libcxx-commits
mailing list