From 8b66b00ecd04c3d37fcfa6bfd03595365c7efd30 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Fri, 5 May 2017 16:08:22 +0000 Subject: fix build on Cygwin llvm-svn: 302246 --- llvm/lib/Support/Unix/DynamicLibrary.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Support') diff --git a/llvm/lib/Support/Unix/DynamicLibrary.inc b/llvm/lib/Support/Unix/DynamicLibrary.inc index a0110e7044e..a0526fa2c1b 100644 --- a/llvm/lib/Support/Unix/DynamicLibrary.inc +++ b/llvm/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 -- cgit v1.2.3