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
This commit is contained in:
Chris Lattner 2007-09-28 20:50:50 +00:00
parent d7c4ca1009
commit 6745458195

View File

@ -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);