Changeset 68f9c43 for src/CodeGen


Ignore:
Timestamp:
Mar 16, 2018, 5:15:02 PM (6 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
new-env, with_gc
Children:
8d7bef2
Parents:
6171841
git-author:
Aaron Moss <a3moss@…> (03/16/18 17:04:24)
git-committer:
Aaron Moss <a3moss@…> (03/16/18 17:15:02)
Message:

First pass at delete removal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/Generate.cc

    r6171841 r68f9c43  
    4141                void cleanTree( std::list< Declaration * > & translationUnit ) {
    4242                        PassVisitor<TreeCleaner> cleaner;
    43                         filter( translationUnit, [](Declaration * decl) { return TreeCleaner::shouldClean(decl); }, false );
     43                        filter( translationUnit, [](Declaration * decl) { return TreeCleaner::shouldClean(decl); } );
    4444                        mutateAll( translationUnit, cleaner );
    4545                } // cleanTree
     
    7979                                }
    8080                                return false;
    81                         }, false );
     81                        } );
    8282                }
    8383
     
    8585                        Statement * callStmt = nullptr;
    8686                        std::swap( stmt->callStmt, callStmt );
    87                         delete stmt;
    8887                        return callStmt;
    8988                }
Note: See TracChangeset for help on using the changeset viewer.