Commit 0a826111 by Sebastian Tafuri

Only track variables in the global scope

parent 263986eb
......@@ -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);
}
}
//
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment