summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2012-11-14 18:54:08 +0000
committerdim <dim@FreeBSD.org>2012-11-14 18:54:08 +0000
commit9c86bf71ddd7aca386785ad65ded311e6e8f4f54 (patch)
treef64697c2bc933b71d2ea951606cbbb23b6d4ddbc /sys
parent28618b83a774cc2a66001cf8d8697e5745612e8b (diff)
downloadFreeBSD-src-9c86bf71ddd7aca386785ad65ded311e6e8f4f54.zip
FreeBSD-src-9c86bf71ddd7aca386785ad65ded311e6e8f4f54.tar.gz
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
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/aic7xxx/aicasm/aicasm_gram.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/aic7xxx/aicasm/aicasm_gram.y b/sys/dev/aic7xxx/aicasm/aicasm_gram.y
index e4ee307..cc7475c 100644
--- a/sys/dev/aic7xxx/aicasm/aicasm_gram.y
+++ b/sys/dev/aic7xxx/aicasm/aicasm_gram.y
@@ -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 */
OpenPOWER on IntegriCloud