Author: Armin Rigo <ar...@tunes.org>
Branch: stmgc-c7
Changeset: r75615:e0d26d687dd1
Date: 2015-01-31 21:06 +0100
http://bitbucket.org/pypy/pypy/changeset/e0d26d687dd1/

Log:    next improvement

diff --git a/rpython/annotator/bookkeeper.py b/rpython/annotator/bookkeeper.py
--- a/rpython/annotator/bookkeeper.py
+++ b/rpython/annotator/bookkeeper.py
@@ -131,11 +131,12 @@
             for call_op in call_sites():
                 self.consider_call_site(call_op)
 
-            for pbc, args_s in self.emulated_pbc_calls.itervalues():
-                args = simple_args(args_s)
-                self.consider_call_site_for_pbc(pbc, args,
-                                                s_ImpossibleValue, None)
-            self.emulated_pbc_calls = {}
+            if self.emulated_pbc_calls:
+                for pbc, args_s in self.emulated_pbc_calls.itervalues():
+                    args = simple_args(args_s)
+                    self.consider_call_site_for_pbc(pbc, args,
+                                                    s_ImpossibleValue, None)
+                self.emulated_pbc_calls.clear()
         finally:
             self.leave()
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to