Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Nov 2012 18:54:08 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r243037 - head/sys/dev/aic7xxx/aicasm
Message-ID:  <201211141854.qAEIs8kl030061@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211141854.qAEIs8kl030061>