mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +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,7 +174,11 @@ TraversalCode ProfileFunc::PreStmt(const Stmt* s)
|
|||
if ( idl )
|
||||
{
|
||||
for ( auto id : *idl )
|
||||
locals.insert(id);
|
||||
// Make sure it's not a placeholder
|
||||
// identifier, used when there's
|
||||
// no explicit one.
|
||||
if ( id->Name() )
|
||||
locals.insert(id);
|
||||
|
||||
is_type_switch = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue