EXPR_INVALID gets constructed in case of errors
authorMatthias Braun <matze@braunis.de>
Sun, 2 Nov 2008 16:36:26 +0000 (16:36 +0000)
committerMatthias Braun <matze@braunis.de>
Sun, 2 Nov 2008 16:36:26 +0000 (16:36 +0000)
[r23392]

parser.c

index 532524a..3a3f75d 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -5419,6 +5419,7 @@ static bool expression_returns(expression_t const *const expr)
                case EXPR_BUILTIN_CONSTANT_P:
                case EXPR_BUILTIN_PREFETCH:
                case EXPR_OFFSETOF:
+               case EXPR_INVALID:
                case EXPR_STATEMENT: // TODO implement
                        return true;
 
@@ -5457,7 +5458,6 @@ static bool expression_returns(expression_t const *const expr)
                                expression_returns(expr->binary.right);
 
                case EXPR_UNKNOWN:
-               case EXPR_INVALID:
                        break;
        }