Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r89258:0b536e14dfbc
Date: 2016-12-28 16:25 +0100
http://bitbucket.org/pypy/pypy/changeset/0b536e14dfbc/

Log:    Fix for a translation crash of 'rpython --sandbox -O2'

diff --git a/rpython/annotator/description.py b/rpython/annotator/description.py
--- a/rpython/annotator/description.py
+++ b/rpython/annotator/description.py
@@ -398,6 +398,8 @@
         s_result = self.specialize(inputcells, op)
         if isinstance(s_result, FunctionGraph):
             s_result = s_result.getreturnvar().annotation
+            if s_result is None:
+                s_result = s_ImpossibleValue
         s_result = unionof(s_result, s_previous_result)
         return s_result
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to