Author: Armin Rigo <[email protected]>
Branch:
Changeset: r72304:ef7d6396c2e4
Date: 2014-07-01 12:12 +0200
http://bitbucket.org/pypy/pypy/changeset/ef7d6396c2e4/
Log: Clarify to the compiler that this path is not a fall-through
diff --git a/rpython/translator/c/funcgen.py b/rpython/translator/c/funcgen.py
--- a/rpython/translator/c/funcgen.py
+++ b/rpython/translator/c/funcgen.py
@@ -267,7 +267,7 @@
# Emit default case
yield 'default:'
if defaultlink is None:
- yield '\tassert(!"bad switch!!");'
+ yield '\tassert(!"bad switch!!"); abort();'
else:
for op in self.gen_link(defaultlink):
yield '\t' + op
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit