Skip to content

Commit 33e0ae0

Browse files
committed
Fix include of config.h that was incorrectly changed in r331184
The RWMutex implementation depends on config.h macros (specifically HAVE_PTHREAD_H and HAVE_PTHREAD_RWLOCK_INIT), so we need to be including it and not just llvm-config.h here or we fall back to a much slower implementation. llvm-svn: 331487
1 parent e7b6654 commit 33e0ae0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Support/RWMutex.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#include "llvm/Support/Allocator.h"
1515
#include "llvm/Support/RWMutex.h"
16-
#include "llvm/Config/llvm-config.h"
16+
#include "llvm/Config/config.h"
1717

1818
//===----------------------------------------------------------------------===//
1919
//=== WARNING: Implementation here must contain only TRULY operating system

0 commit comments

Comments
 (0)