]> granicus.if.org Git - llvm/commitdiff
fix build on Cygwin
authorNuno Lopes <nunoplopes@sapo.pt>
Fri, 5 May 2017 16:08:22 +0000 (16:08 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Fri, 5 May 2017 16:08:22 +0000 (16:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302246 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Unix/DynamicLibrary.inc

index a0110e7044ee9cb417f397ec8a3f4d638588d19e..a0526fa2c1b8034e2825e08af5a336c88ad01ec1 100644 (file)
@@ -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