From 812236fd5548e9e9a21f7e3a3bc53d553fda5e3c Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Thu, 13 Dec 2007 22:25:35 +0000 Subject: [PATCH] Fix r741. [r18734] --- parser.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/parser.c b/parser.c index 0c49e62..65748f1 100644 --- a/parser.c +++ b/parser.c @@ -4427,11 +4427,12 @@ static bool expression_has_effect(const expression_t *const expr) case EXPR_WIDE_STRING_LITERAL: return false; case EXPR_CALL: { const call_expression_t *const call = &expr->call; - if (call->function->kind == EXPR_BUILTIN_SYMBOL) { - switch (call->function->builtin_symbol.symbol->ID) { - case T___builtin_va_end: return true; - default: return false; - } + if (call->function->kind != EXPR_BUILTIN_SYMBOL) + return true; + + switch (call->function->builtin_symbol.symbol->ID) { + case T___builtin_va_end: return true; + default: return false; } } case EXPR_CONDITIONAL: { -- 2.20.1