Fix warning converting from void* to boolean introduced in r301153.
authorFrederich Munch <colsebas@hotmail.com>
Mon, 24 Apr 2017 02:51:40 +0000 (02:51 +0000)
committerFrederich Munch <colsebas@hotmail.com>
Mon, 24 Apr 2017 02:51:40 +0000 (02:51 +0000)
llvm-svn: 301155

llvm/lib/Support/DynamicLibrary.cpp

index 1541a57..05e7ca6 100644 (file)
@@ -61,7 +61,7 @@ public:
       Handles.push_back(Handle);
     } else {
 #ifndef LLVM_ON_WIN32
-      if (Process) {
+      if (Process != nullptr) {
         if (CanClose)
           DLClose(Process);
         if (Process == Handle)