Internals: Cleanup some casts. No functional change.

This commit is contained in:
Wilson Snyder 2016-11-06 11:39:09 -05:00
parent b748ddfe06
commit 1ae22e1365
1 changed files with 10 additions and 8 deletions

View File

@ -2282,15 +2282,17 @@ statement_item<nodep>: // IEEE: statement_item
// //
// // IEEE: conditional_statement // // IEEE: conditional_statement
| unique_priorityE yIF '(' expr ')' stmtBlock %prec prLOWER_THAN_ELSE | unique_priorityE yIF '(' expr ')' stmtBlock %prec prLOWER_THAN_ELSE
{ $$ = new AstIf($2,$4,$6,NULL); { AstIf* newp = new AstIf($2,$4,$6,NULL);
if ($1 == uniq_UNIQUE) $$->castIf()->uniquePragma(true); $$ = newp;
if ($1 == uniq_UNIQUE0) $$->castIf()->unique0Pragma(true); if ($1 == uniq_UNIQUE) newp->uniquePragma(true);
if ($1 == uniq_PRIORITY) $$->castIf()->priorityPragma(true); } if ($1 == uniq_UNIQUE0) newp->unique0Pragma(true);
if ($1 == uniq_PRIORITY) newp->priorityPragma(true); }
| unique_priorityE yIF '(' expr ')' stmtBlock yELSE stmtBlock | unique_priorityE yIF '(' expr ')' stmtBlock yELSE stmtBlock
{ $$ = new AstIf($2,$4,$6,$8); { AstIf* newp = new AstIf($2,$4,$6,$8);
if ($1 == uniq_UNIQUE) $$->castIf()->uniquePragma(true); $$ = newp;
if ($1 == uniq_UNIQUE0) $$->castIf()->unique0Pragma(true); if ($1 == uniq_UNIQUE) newp->uniquePragma(true);
if ($1 == uniq_PRIORITY) $$->castIf()->priorityPragma(true); } if ($1 == uniq_UNIQUE0) newp->unique0Pragma(true);
if ($1 == uniq_PRIORITY) newp->priorityPragma(true); }
// //
| finc_or_dec_expression ';' { $$ = $1; } | finc_or_dec_expression ';' { $$ = $1; }
// // IEEE: inc_or_dec_expression // // IEEE: inc_or_dec_expression