Front-end infrastructure: simplify and localize creating symbol nodes, reducing replication.

This commit is contained in:
John Kessenich 2016-03-19 18:10:22 -06:00
parent 2cc221ade3
commit 952543e757
3 changed files with 22 additions and 14 deletions

View file

@ -1017,7 +1017,7 @@ TIntermAggregate* TParseContext::handleFunctionDefinition(const TSourceLoc& loc,
loc);
}
} else
paramNodes = intermediate.growAggregate(paramNodes, intermediate.addSymbol(0, "", *param.type, loc), loc);
paramNodes = intermediate.growAggregate(paramNodes, intermediate.addSymbol(*param.type, loc), loc);
}
intermediate.setAggregateOperator(paramNodes, EOpParameters, TType(EbtVoid), loc);
loopNestingLevel = 0;