Skip to content

Commit 5174d00

Browse files
committed
[llvm] Add back Allocator.h include to RWMutex.cpp.
This unbreaks the build on macOS. Without the include, the build fails with llvm/lib/Support/RWMutex.cpp:47:36: error: use of undeclared identifier 'safe_malloc' 47 | static_cast<pthread_rwlock_t*>(safe_malloc(sizeof(pthread_rwlock_t))); | ^
1 parent 84d853a commit 5174d00

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Support/RWMutex.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "llvm/Support/RWMutex.h"
1414
#include "llvm/Config/config.h"
1515
#include "llvm/Config/llvm-config.h" // for LLVM_ENABLE_THREADS
16+
#include "llvm/Support/Allocator.h"
1617

1718
#if defined(LLVM_USE_RW_MUTEX_IMPL)
1819
using namespace llvm;

0 commit comments

Comments
 (0)