svn commit: r243200 - stable/7/sys/dev/aic7xxx/aicasm

Dimitry Andric dim at FreeBSD.org
Sat Nov 17 23:44:02 UTC 2012


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 */


More information about the svn-src-stable-7 mailing list