summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2013-10-14 00:06:58 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2013-10-14 00:06:58 +0000
commit7af18578f8501eaf91953f10d987ce1aa776a0f9 (patch)
tree1322ca54c6b49ebefe2ff6a9afeb32796e2b0864
parentd46d6dea68aa2c0978ad00fe7f57b1a142deda98 (diff)
downloadbcm5719-llvm-7af18578f8501eaf91953f10d987ce1aa776a0f9.tar.gz
bcm5719-llvm-7af18578f8501eaf91953f10d987ce1aa776a0f9.zip
Windows: Don't bother with pinning Kernel32.dll
We don't delay load it so it shouldn't be going anywhere. llvm-svn: 192561
-rw-r--r--llvm/lib/Support/Windows/RWMutex.inc4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Support/Windows/RWMutex.inc b/llvm/lib/Support/Windows/RWMutex.inc
index 7d158288672..c4318448e7c 100644
--- a/llvm/lib/Support/Windows/RWMutex.inc
+++ b/llvm/lib/Support/Windows/RWMutex.inc
@@ -48,9 +48,7 @@ static bool loadSRW() {
if (!sChecked) {
sChecked = true;
- HMODULE hLib;
- ::GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_PIN, L"Kernel32.dll", &hLib);
- if (hLib) {
+ if (HMODULE hLib = ::GetModuleHandleW(L"Kernel32.dll")) {
fpInitializeSRWLock =
(VOID (WINAPI *)(PSRWLOCK))::GetProcAddress(hLib,
"InitializeSRWLock");
OpenPOWER on IntegriCloud