Only track variables in the global scope

This commit is contained in:
Sebastian Tafuri 2017-10-06 22:45:00 +02:00
parent 263986eb6e
commit 0a82611174

View File

@ -8289,8 +8289,11 @@ void HlslParseContext::declareBlock(const TSourceLoc& loc, TType& type, const TS
return; return;
} }
// Save it in the AST for linker use. if(symbolTable.atGlobalLevel())
trackLinkage(variable); {
// Save it in the AST for linker use.
trackLinkage(variable);
}
} }
// //