From 799259f32024f1824849a686a40c53feef4a3c83 Mon Sep 17 00:00:00 2001 From: Frederich Munch Date: Mon, 24 Apr 2017 03:12:16 +0000 Subject: Fix warning converting from boolean to pointer introduced in r301153. This reverts commit r301155, which was incorrect. llvm-svn: 301156 --- llvm/lib/Support/DynamicLibrary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Support/DynamicLibrary.cpp') diff --git a/llvm/lib/Support/DynamicLibrary.cpp b/llvm/lib/Support/DynamicLibrary.cpp index 05e7ca630ec..1541a572630 100644 --- a/llvm/lib/Support/DynamicLibrary.cpp +++ b/llvm/lib/Support/DynamicLibrary.cpp @@ -61,7 +61,7 @@ public: Handles.push_back(Handle); } else { #ifndef LLVM_ON_WIN32 - if (Process != nullptr) { + if (Process) { if (CanClose) DLClose(Process); if (Process == Handle) -- cgit v1.2.3