summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-07-17 19:46:12 +0000
committerGreg Clayton <gclayton@apple.com>2012-07-17 19:46:12 +0000
commit9c3f4101bc2928db2c2d6b82b5ca086c1af9889c (patch)
tree91a933febf5b245b1bbecbb4ade35bd42a85b6bd
parentf73d7553cc05e32f4f7036e473d1052818e930a7 (diff)
downloadbcm5719-llvm-9c3f4101bc2928db2c2d6b82b5ca086c1af9889c.tar.gz
bcm5719-llvm-9c3f4101bc2928db2c2d6b82b5ca086c1af9889c.zip
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
-rw-r--r--lldb/source/Host/macosx/Host.mm6
1 files changed, 1 insertions, 5 deletions
diff --git a/lldb/source/Host/macosx/Host.mm b/lldb/source/Host/macosx/Host.mm
index 9d65645ba68..2d8086048d6 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;
}
}
OpenPOWER on IntegriCloud