summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/Support/Compiler.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h
index 4de815fe61d..9783c67ae32 100644
--- a/llvm/include/llvm/Support/Compiler.h
+++ b/llvm/include/llvm/Support/Compiler.h
@@ -519,7 +519,7 @@ namespace llvm {
/// reduced default alignment.
inline void *allocate_buffer(size_t Size, size_t Alignment) {
return ::operator new(Size
-#if __cpp_aligned_new
+#ifdef __cpp_aligned_new
,
std::align_val_t(Alignment)
#endif
@@ -535,11 +535,11 @@ inline void *allocate_buffer(size_t Size, size_t Alignment) {
/// most likely using the above helper.
inline void deallocate_buffer(void *Ptr, size_t Size, size_t Alignment) {
::operator delete(Ptr
-#if __cpp_sized_deallocation
+#ifdef __cpp_sized_deallocation
,
Size
#endif
-#if __cpp_aligned_new
+#ifdef __cpp_aligned_new
,
std::align_val_t(Alignment)
#endif
OpenPOWER on IntegriCloud