[cfe-commits] r106182 - /cfe/trunk/lib/Checker/BasicStore.cpp

Ted Kremenek kremenek at apple.com
Wed Jun 16 17:24:37 PDT 2010


Author: kremenek
Date: Wed Jun 16 19:24:37 2010
New Revision: 106182

URL: http://llvm.org/viewvc/llvm-project?rev=106182&view=rev
Log:
Correctly return early from BasicStoreManager::iterBindings() when the BindingsHandler returns false.

Modified:
    cfe/trunk/lib/Checker/BasicStore.cpp

Modified: cfe/trunk/lib/Checker/BasicStore.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Checker/BasicStore.cpp?rev=106182&r1=106181&r2=106182&view=diff
==============================================================================
--- cfe/trunk/lib/Checker/BasicStore.cpp (original)
+++ cfe/trunk/lib/Checker/BasicStore.cpp Wed Jun 16 19:24:37 2010
@@ -475,7 +475,8 @@
   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;
 
 }
 





More information about the cfe-commits mailing list