Fix Win bots.

llvm-svn: 296443
This commit is contained in:
Vassil Vassilev 2017-02-28 07:26:21 +00:00
parent 44693083be
commit c986f8765a
1 changed files with 2 additions and 2 deletions

View File

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