From: Vassil Vassilev Date: Thu, 2 Mar 2017 18:12:59 +0000 (+0000) Subject: Cast to the right type on Windows. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c59b65941ef7329f8c9beb7f30bc4b0550920860;p=llvm Cast to the right type on Windows. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296778 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/Windows/DynamicLibrary.inc b/lib/Support/Windows/DynamicLibrary.inc index a0d1d0536d3..25ecb16b373 100644 --- a/lib/Support/Windows/DynamicLibrary.inc +++ b/lib/Support/Windows/DynamicLibrary.inc @@ -96,7 +96,7 @@ DynamicLibrary DynamicLibrary::addPermanentLibrary(void *handle, std::string *errMsg) { SmartScopedLock lock(*SymbolsMutex); // If we've already loaded this library, tell the caller. - if (!OpenedHandles->insert(handle).second) { + if (!OpenedHandles->insert((HMODULE)handle).second) { MakeErrMsg(errMsg, "Library already loaded"); return DynamicLibrary(); }