From 9c3f4101bc2928db2c2d6b82b5ca086c1af9889c Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Tue, 17 Jul 2012 19:46:12 +0000 Subject: [PATCH] Call "drain" on the auto release pool as it will do the right thing for both GC and non-GC apps. It will also quiet the static analyzer. llvm-svn: 160390 --- lldb/source/Host/macosx/Host.mm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lldb/source/Host/macosx/Host.mm b/lldb/source/Host/macosx/Host.mm index 9d65645ba68b..2d8086048d65 100644 --- a/lldb/source/Host/macosx/Host.mm +++ b/lldb/source/Host/macosx/Host.mm @@ -114,11 +114,7 @@ public: { if (m_pool) { - if (objc_collectingEnabled()) - [m_pool drain]; - else - [m_pool release]; - + [m_pool drain]; m_pool = nil; } }