Skip to content

Commit

Permalink
Fix Win bots.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296443 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
vgvassilev committed Feb 28, 2017
1 parent 5951ab5 commit 925071a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Support/Windows/DynamicLibrary.inc
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ DynamicLibrary DynamicLibrary::getPermanentLibrary(const char *filename,

DynamicLibrary DynamicLibrary::addPermanentLibrary(void *handle) {
SmartScopedLock<true> lock(*SymbolsMutex);
return addPermanentLibraryWithLock(handle, lock);
return addPermanentLibraryWithLock(handle, lock, false);
}

DynamicLibrary DynamicLibrary::addPermanentLibraryWithLock(void *handle,
Expand Down Expand Up @@ -150,7 +150,7 @@ void* DynamicLibrary::SearchForAddressOfSymbol(const char* symbolName) {
}

// Now search the libraries.
if (OpenedHandles) {
if (OpenedHandles.isConstructed()) {
for (DenseSet<HMODULE>::iterator I = OpenedHandles->begin(),
E = OpenedHandles->end(); I != E; ++I) {
FARPROC ptr = GetProcAddress((HMODULE)*I, symbolName);
Expand Down

0 comments on commit 925071a

Please sign in to comment.