mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
Change dynamic_cast in reaching-def logic to static_cast
This commit is contained in:
parent
6d3df74788
commit
6c80052c55
1 changed files with 2 additions and 2 deletions
|
@ -1076,7 +1076,7 @@ TraversalCode RD_Decorate::PreExpr(const Expr* e)
|
|||
|
||||
case EXPR_RECORD_CONSTRUCTOR:
|
||||
{
|
||||
auto r = dynamic_cast<const RecordConstructorExpr*>(e);
|
||||
auto r = static_cast<const RecordConstructorExpr*>(e);
|
||||
auto l = r->Op();
|
||||
mgr.SetPreFromPre(l, e);
|
||||
break;
|
||||
|
@ -1084,7 +1084,7 @@ TraversalCode RD_Decorate::PreExpr(const Expr* e)
|
|||
|
||||
case EXPR_LAMBDA:
|
||||
{
|
||||
auto l = dynamic_cast<const LambdaExpr*>(e);
|
||||
auto l = static_cast<const LambdaExpr*>(e);
|
||||
const auto& ids = l->OuterIDs();
|
||||
|
||||
for ( auto& id : ids )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue