Date: Sat, 17 Nov 2012 23:44:02 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r243200 - stable/7/sys/dev/aic7xxx/aicasm Message-ID: <201211172344.qAHNi2Y3008823@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Sat Nov 17 23:44:01 2012 New Revision: 243200 URL: http://svnweb.freebsd.org/changeset/base/243200 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/7/sys/dev/aic7xxx/aicasm/aicasm_gram.y Directory Properties: stable/7/sys/ (props changed) Modified: stable/7/sys/dev/aic7xxx/aicasm/aicasm_gram.y ============================================================================== --- stable/7/sys/dev/aic7xxx/aicasm/aicasm_gram.y Sat Nov 17 23:39:36 2012 (r243199) +++ stable/7/sys/dev/aic7xxx/aicasm/aicasm_gram.y Sat Nov 17 23:44:01 2012 (r243200) @@ -1078,7 +1078,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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211172344.qAHNi2Y3008823>