]> granicus.if.org Git - llvm/commitdiff
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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301155 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/DynamicLibrary.cpp

index 1541a5726302e3e661db20aa51801d104e6c22b8..05e7ca630ecbad8f86dfb13fca68682e831316e3 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)