summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/DynamicLibrary.cpp
diff options
context:
space:
mode:
authorFrederich Munch <colsebas@hotmail.com>2017-04-24 03:12:16 +0000
committerFrederich Munch <colsebas@hotmail.com>2017-04-24 03:12:16 +0000
commit799259f32024f1824849a686a40c53feef4a3c83 (patch)
treebaab72b590c042212b68e251065643518fd36771 /llvm/lib/Support/DynamicLibrary.cpp
parentc152a963509a6768309850a8e9e2b9570b18486d (diff)
downloadbcm5719-llvm-799259f32024f1824849a686a40c53feef4a3c83.tar.gz
bcm5719-llvm-799259f32024f1824849a686a40c53feef4a3c83.zip
Fix warning converting from boolean to pointer introduced in r301153.
This reverts commit r301155, which was incorrect. llvm-svn: 301156
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