Internals: Cleanup some casts. No functional change.
This commit is contained in:
parent
b748ddfe06
commit
1ae22e1365
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue