Only track variables in the global scope
This commit is contained in:
parent
263986eb6e
commit
0a82611174
@ -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…
x
Reference in New Issue
Block a user