summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/DynamicLibrary.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-07-31 06:00:51 +0000
committerChris Lattner <sabre@nondot.org>2007-07-31 06:00:51 +0000
commit364439eb15d3dd9ae4b27ae6d8ed521ab7617393 (patch)
treefbe82d83148b006f52f1dedc71ab15eb71e8aafe /llvm/lib/System/DynamicLibrary.cpp
parentc6684bc0c53ff097bc68ad30d1361bafe7d54084 (diff)
downloadbcm5719-llvm-364439eb15d3dd9ae4b27ae6d8ed521ab7617393.tar.gz
bcm5719-llvm-364439eb15d3dd9ae4b27ae6d8ed521ab7617393.zip
Fix PR1581, patch by Timo Savola
llvm-svn: 40616
Diffstat (limited to 'llvm/lib/System/DynamicLibrary.cpp')
-rw-r--r--llvm/lib/System/DynamicLibrary.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/DynamicLibrary.cpp b/llvm/lib/System/DynamicLibrary.cpp
index 8119348547c..a076e3c760b 100644
--- a/llvm/lib/System/DynamicLibrary.cpp
+++ b/llvm/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 == 0 && "Can't open program as dynamic library");
handle = a_handle;
OpenedHandles.push_back(a_handle);
OpenPOWER on IntegriCloud