aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-09-28 20:50:50 +0000
committerChris Lattner <sabre@nondot.org>2007-09-28 20:50:50 +0000
commitf7d1aad8f4b862ff4e4bb100595006d209277a59 (patch)
treea10a79be2e453f90a008bb3d757a79e8b5978ce1 /lib/System
parent5096ee109f9a0cf2082466f0588e14ede0c0e62e (diff)
downloadexternal_llvm-f7d1aad8f4b862ff4e4bb100595006d209277a59.zip
external_llvm-f7d1aad8f4b862ff4e4bb100595006d209277a59.tar.gz
external_llvm-f7d1aad8f4b862ff4e4bb100595006d209277a59.tar.bz2
really fix PR1581, thanks to Daniel Dunbar for pointing
this out. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42448 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System')
-rw-r--r--lib/System/DynamicLibrary.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/DynamicLibrary.cpp b/lib/System/DynamicLibrary.cpp
index a076e3c..b06f6b0 100644
--- a/lib/System/DynamicLibrary.cpp
+++ b/lib/System/DynamicLibrary.cpp
@@ -62,7 +62,7 @@ DynamicLibrary::DynamicLibrary() : handle(0) {
lt_dlhandle a_handle = lt_dlopen(0);
- assert(a_handle == 0 && "Can't open program as dynamic library");
+ assert(a_handle && "Can't open program as dynamic library");
handle = a_handle;
OpenedHandles.push_back(a_handle);