[llvm] ce5b04c - [Support] #include <new> for std::align_val_t

Benjamin Kramer via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 25 10:40:06 PST 2022


Author: Benjamin Kramer
Date: 2022-01-25T19:40:00+01:00
New Revision: ce5b04cc048aa9b82355bbea21a062462553eb47

URL: https://github.com/llvm/llvm-project/commit/ce5b04cc048aa9b82355bbea21a062462553eb47
DIFF: https://github.com/llvm/llvm-project/commit/ce5b04cc048aa9b82355bbea21a062462553eb47.diff

LOG: [Support] #include <new> for std::align_val_t

This is only used when aligned new is enabled.

Added: 
    

Modified: 
    llvm/lib/Support/MemAlloc.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Support/MemAlloc.cpp b/llvm/lib/Support/MemAlloc.cpp
index 7aaa0dc6e205a..07a26cf26480b 100644
--- a/llvm/lib/Support/MemAlloc.cpp
+++ b/llvm/lib/Support/MemAlloc.cpp
@@ -7,6 +7,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Support/MemAlloc.h"
+#include <new>
 
 // These are out of line to have __cpp_aligned_new not affect ABI.
 


        


More information about the llvm-commits mailing list