forked from OSchip/llvm-project
Replicate attributes on definition to make MSVC less noisy
warning C4565: 'llvm::allocate_buffer': redefinition; the symbol was previously declared with __declspec(restrict)
This commit is contained in:
parent
06e4f69b22
commit
bc1ea2a2c5
|
@ -10,7 +10,8 @@
|
|||
|
||||
// These are out of line to have __cpp_aligned_new not affect ABI.
|
||||
|
||||
void *llvm::allocate_buffer(size_t Size, size_t Alignment) {
|
||||
LLVM_ATTRIBUTE_RETURNS_NONNULL LLVM_ATTRIBUTE_RETURNS_NOALIAS void *
|
||||
llvm::allocate_buffer(size_t Size, size_t Alignment) {
|
||||
return ::operator new(Size
|
||||
#ifdef __cpp_aligned_new
|
||||
,
|
||||
|
|
Loading…
Reference in New Issue