svn commit: r243037 - head/sys/dev/aic7xxx/aicasm

Dimitry Andric dim at FreeBSD.org
Wed Nov 14 18:54:08 UTC 2012


Author: dim
Date: Wed Nov 14 18:54:08 2012
New Revision: 243037
URL: http://svnweb.freebsd.org/changeset/base/243037

Log:
  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.
  
  MFC after:	3 days

Modified:
  head/sys/dev/aic7xxx/aicasm/aicasm_gram.y

Modified: head/sys/dev/aic7xxx/aicasm/aicasm_gram.y
==============================================================================
--- head/sys/dev/aic7xxx/aicasm/aicasm_gram.y	Wed Nov 14 18:52:37 2012	(r243036)
+++ head/sys/dev/aic7xxx/aicasm/aicasm_gram.y	Wed Nov 14 18:54:08 2012	(r243037)
@@ -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