summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/DynamicLibrary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support/DynamicLibrary.cpp')
-rw-r--r--llvm/lib/Support/DynamicLibrary.cpp2
1 files changed, 1 insertions, 1 deletions
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)
OpenPOWER on IntegriCloud