Only track variables in the global scope
This commit is contained in:
parent
263986eb6e
commit
0a82611174
1 changed files with 5 additions and 2 deletions
|
|
@ -8289,8 +8289,11 @@ void HlslParseContext::declareBlock(const TSourceLoc& loc, TType& type, const TS
|
|||
return;
|
||||
}
|
||||
|
||||
// Save it in the AST for linker use.
|
||||
trackLinkage(variable);
|
||||
if(symbolTable.atGlobalLevel())
|
||||
{
|
||||
// Save it in the AST for linker use.
|
||||
trackLinkage(variable);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue