[llvm-commits] [llvm] r40616 - /llvm/trunk/lib/System/DynamicLibrary.cpp

Chris Lattner sabre at nondot.org
Mon Jul 30 23:00:52 PDT 2007


Author: lattner
Date: Tue Jul 31 01:00:51 2007
New Revision: 40616

URL: http://llvm.org/viewvc/llvm-project?rev=40616&view=rev
Log:
Fix PR1581, patch by Timo Savola


Modified:
    llvm/trunk/lib/System/DynamicLibrary.cpp

Modified: llvm/trunk/lib/System/DynamicLibrary.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/DynamicLibrary.cpp?rev=40616&r1=40615&r2=40616&view=diff

==============================================================================
--- llvm/trunk/lib/System/DynamicLibrary.cpp (original)
+++ llvm/trunk/lib/System/DynamicLibrary.cpp Tue Jul 31 01:00:51 2007
@@ -62,7 +62,7 @@
 
   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);





More information about the llvm-commits mailing list