aboutsummaryrefslogtreecommitdiff
path: root/lib/Checker/BasicStore.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-06-17 00:24:37 +0000
committerTed Kremenek <kremenek@apple.com>2010-06-17 00:24:37 +0000
commit744b304457c235153567a36493953ddb42f0db94 (patch)
tree55e785990b6ed183b62bf19e6b73d63206391683 /lib/Checker/BasicStore.cpp
parente0cc047b1984fc301bbe6e98b6d197bed39ad562 (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.cpp3
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;
}