From 6745458195d6a70381cf84cb4da0bfe2356351a6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 28 Sep 2007 20:50:50 +0000 Subject: [PATCH] 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 --- lib/System/DynamicLibrary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/System/DynamicLibrary.cpp b/lib/System/DynamicLibrary.cpp index a076e3c760b..b06f6b08be9 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);