Memory: Put pragma tables in the pool.
Fixes #916 (the last change covered by the PR). 3rd list item in #976.
This commit is contained in:
parent
cbdf871d7f
commit
fd1d07daf1
5 changed files with 12 additions and 9 deletions
|
|
@ -3170,10 +3170,10 @@ TIntermTyped* TIntermediate::promoteConstantUnion(TBasicType promoteTo, TIntermC
|
|||
node->getLoc());
|
||||
}
|
||||
|
||||
void TIntermAggregate::addToPragmaTable(const TPragmaTable& pTable)
|
||||
void TIntermAggregate::setPragmaTable(const TPragmaTable& pTable)
|
||||
{
|
||||
assert(!pragmaTable);
|
||||
pragmaTable = new TPragmaTable();
|
||||
assert(pragmaTable == nullptr);
|
||||
pragmaTable = new TPragmaTable;
|
||||
*pragmaTable = pTable;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue