From 1d33e8d38f86c89b11cdc3e4f4d79e91baad2fd5 Mon Sep 17 00:00:00 2001 From: Andrew MacPherson Date: Fri, 10 Oct 2014 17:47:00 +0000 Subject: [PATCH] Update assertion in DYLDRendezvous. This accounts for the case where a dlopen() call fails when loading a library with a missing dependency. llvm-svn: 219520 --- lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp index 73c6549277a4..d8279e44e14a 100644 --- a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp +++ b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp @@ -203,7 +203,7 @@ DYLDRendezvous::UpdateSOEntries() // state and take a snapshot of the currently loaded images. if (m_current.state == eAdd || m_current.state == eDelete) { - assert(m_previous.state == eConsistent); + assert(m_previous.state == eConsistent || (m_previous.state == eAdd && m_current.state == eDelete)); m_soentries.clear(); m_added_soentries.clear(); m_removed_soentries.clear();