From: Nuno Lopes Date: Fri, 5 May 2017 16:08:22 +0000 (+0000) Subject: fix build on Cygwin X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1febb5cbbda72858110daab66f20141185646c77;p=llvm fix build on Cygwin git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302246 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/Unix/DynamicLibrary.inc b/lib/Support/Unix/DynamicLibrary.inc index a0110e7044e..a0526fa2c1b 100644 --- a/lib/Support/Unix/DynamicLibrary.inc +++ b/lib/Support/Unix/DynamicLibrary.inc @@ -31,7 +31,7 @@ void *DynamicLibrary::HandleSet::DLOpen(const char *File, std::string *Err) { #ifdef __CYGWIN__ // Cygwin searches symbols only in the main // with the handle of dlopen(NULL, RTLD_GLOBAL). - if (!Filename) + if (!File) Handle = RTLD_DEFAULT; #endif