Only track variables in the global scope
This commit is contained in:
parent
263986eb6e
commit
0a82611174
@ -8289,9 +8289,12 @@ void HlslParseContext::declareBlock(const TSourceLoc& loc, TType& type, const TS
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(symbolTable.atGlobalLevel())
|
||||||
|
{
|
||||||
// Save it in the AST for linker use.
|
// Save it in the AST for linker use.
|
||||||
trackLinkage(variable);
|
trackLinkage(variable);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// "For a block, this process applies to the entire block, or until the first member
|
// "For a block, this process applies to the entire block, or until the first member
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user