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 ...@@ -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);
}
} }
// //
......
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