summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2018-10-11 03:01:14 +0000
committerEric Fiselier <eric@efcs.ca>2018-10-11 03:01:14 +0000
commitc3f4753f7139c73063304235781e4f7788a94c06 (patch)
treeb591732da5c10362b24cd97e78090ecf2aaf8bf4
parentc2ae664bd1d31622265db0ab4ee888f5c01d45f0 (diff)
downloadlibcxxabi-c3f4753f7139c73063304235781e4f7788a94c06.tar.gz
Use C++03 friendly version of alignof
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@344215 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--src/fallback_malloc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fallback_malloc.cpp b/src/fallback_malloc.cpp
index 150a4bb..202a467 100644
--- a/src/fallback_malloc.cpp
+++ b/src/fallback_malloc.cpp
@@ -216,7 +216,7 @@ void* __aligned_malloc_with_fallback(size_t size) {
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);