enhancements/changes to the Reduce class in preparation for use-defs

This commit is contained in:
Vern Paxson 2021-02-06 09:52:35 -08:00
parent a067f4c5b0
commit 2114c4a26b
2 changed files with 55 additions and 18 deletions

View file

@ -27,7 +27,7 @@ StmtPtr Stmt::Reduce(Reducer* c)
if ( repl )
return repl;
if ( c->ShouldOmitStmt(this_ptr) )
if ( c->ShouldOmitStmt(this) )
{
auto null = make_intrusive<NullStmt>();
null->SetOriginal(this_ptr);