diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-06-17 00:24:37 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-06-17 00:24:37 +0000 |
commit | 744b304457c235153567a36493953ddb42f0db94 (patch) | |
tree | 55e785990b6ed183b62bf19e6b73d63206391683 /lib/Checker/BasicStore.cpp | |
parent | e0cc047b1984fc301bbe6e98b6d197bed39ad562 (diff) |
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
Diffstat (limited to 'lib/Checker/BasicStore.cpp')
-rw-r--r-- | lib/Checker/BasicStore.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |