svn commit: r243198 - stable/9/sys/dev/aic7xxx/aicasm
Dimitry Andric
dim at FreeBSD.org
Sat Nov 17 23:34:10 UTC 2012
Author: dim
Date: Sat Nov 17 23:34:10 2012
New Revision: 243198
URL: http://svnweb.freebsd.org/changeset/base/243198
Log:
MFC r243037:
Fix a bug in aicasm_gram.y, noted by a newer clang 3.2 snapshot: it
compared an enum scope_type against a yacc-generated define, so the
condition would always be false.
Modified:
stable/9/sys/dev/aic7xxx/aicasm/aicasm_gram.y
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/dev/ (props changed)
Modified: stable/9/sys/dev/aic7xxx/aicasm/aicasm_gram.y
==============================================================================
--- stable/9/sys/dev/aic7xxx/aicasm/aicasm_gram.y Sat Nov 17 23:31:16 2012 (r243197)
+++ stable/9/sys/dev/aic7xxx/aicasm/aicasm_gram.y Sat Nov 17 23:34:10 2012 (r243198)
@@ -1076,7 +1076,7 @@ conditional:
last_scope = TAILQ_LAST(&scope_context->inner_scope,
scope_tailq);
if (last_scope == NULL
- || last_scope->type == T_ELSE) {
+ || last_scope->type == SCOPE_ELSE) {
stop("'else if' without leading 'if'", EX_DATAERR);
/* NOTREACHED */
More information about the svn-src-all
mailing list