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:
Benjamin Kramer 2020-04-25 02:00:54 +02:00
parent 06e4f69b22
commit bc1ea2a2c5
1 changed files with 2 additions and 1 deletions

View File

@ -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
,