mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
fix: don't treat pseudo-identifiers in type cases as local variables
This commit is contained in:
parent
adb4958c73
commit
a09c5e6bde
1 changed files with 5 additions and 1 deletions
|
@ -174,6 +174,10 @@ TraversalCode ProfileFunc::PreStmt(const Stmt* s)
|
||||||
if ( idl )
|
if ( idl )
|
||||||
{
|
{
|
||||||
for ( auto id : *idl )
|
for ( auto id : *idl )
|
||||||
|
// Make sure it's not a placeholder
|
||||||
|
// identifier, used when there's
|
||||||
|
// no explicit one.
|
||||||
|
if ( id->Name() )
|
||||||
locals.insert(id);
|
locals.insert(id);
|
||||||
|
|
||||||
is_type_switch = true;
|
is_type_switch = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue