From: Ted Kremenek Date: Thu, 17 Jun 2010 00:24:37 +0000 (+0000) Subject: Correctly return early from BasicStoreManager::iterBindings() when the BindingsHandle... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=744b304457c235153567a36493953ddb42f0db94;p=clang Correctly return early from BasicStoreManager::iterBindings() when the BindingsHandler returns false. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106182 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Checker/BasicStore.cpp b/lib/Checker/BasicStore.cpp index 5be5ca615e..6e0fa66d54 100644 --- a/lib/Checker/BasicStore.cpp +++ b/lib/Checker/BasicStore.cpp @@ -475,7 +475,8 @@ void BasicStoreManager::iterBindings(Store store, BindingsHandler& f) { BindingsTy B = GetBindings(store); for (BindingsTy::iterator I=B.begin(), E=B.end(); I != E; ++I) - f.HandleBinding(*this, store, I.getKey(), I.getData()); + if (!f.HandleBinding(*this, store, I.getKey(), I.getData())) + return; }