Changeset 42107b4


Ignore:
Timestamp:
Apr 26, 2018, 1:32:53 PM (4 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
new-env, with_gc
Children:
7a37f25
Parents:
1cdfa82
git-author:
Aaron Moss <a3moss@…> (04/25/18 17:44:18)
git-committer:
Aaron Moss <a3moss@…> (04/26/18 13:32:53)
Message:

Leftover cleanup from merge

Location:
src
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • src/Concurrency/Keywords.cc

    r1cdfa82 r42107b4  
    284284                        // convert (thread &)t to (thread_desc &)*get_thread(t), etc.
    285285                        if( !type_decl ) SemanticError( cast, context_error );
    286                         Expression * arg = cast->arg;
    287                         cast->arg = nullptr;
    288                         delete cast;
    289286                        return new CastExpr(
    290287                                UntypedExpr::createDeref(
    291                                         new UntypedExpr( new NameExpr( getter_name ), { arg } )
     288                                        new UntypedExpr( new NameExpr( getter_name ), { cast->arg } )
    292289                                ),
    293290                                new ReferenceType(
  • src/Parser/DeclarationNode.cc

    r1cdfa82 r42107b4  
    9393
    9494        delete assert.condition;
    95         delete assert.message;
    9695}
    9796
  • src/SymTab/Validate.cc

    r1cdfa82 r42107b4  
    312312                } // if
    313313                // Always remove the hoisted aggregate from the inner structure.
    314                 GuardAction( [aggregateDecl]() { filter( aggregateDecl->members, shouldHoist, false ); } );
     314                GuardAction( [aggregateDecl]() { filter( aggregateDecl->members, shouldHoist ); } );
    315315        }
    316316
     
    692692                                new_static_root<BasicType>( Type::Qualifiers(), BasicType::LongUnsignedInt );
    693693                }
    694                 filter( translationUnit, isTypedef, true );
     694                filter( translationUnit, isTypedef );
    695695        }
    696696
     
    829829                        } // if
    830830                        return false;
    831                 }, true);
     831                } );
    832832                return compoundStmt;
    833833        }
     
    837837        template<typename AggDecl>
    838838        AggDecl *EliminateTypedef::handleAggregate( AggDecl * aggDecl ) {
    839                 filter( aggDecl->members, isTypedef, true );
     839                filter( aggDecl->members, isTypedef );
    840840                return aggDecl;
    841841        }
  • src/SynTree/Declaration.cc

    r1cdfa82 r42107b4  
    8080}
    8181
    82 StaticAssertDecl::~StaticAssertDecl() {
    83         delete condition;
    84         delete message;
    85 }
    86 
    8782void StaticAssertDecl::print( std::ostream &os, Indenter indent ) const {
    8883        os << "Static Assert with condition: ";
  • src/SynTree/Declaration.h

    r1cdfa82 r42107b4  
    364364        StaticAssertDecl( Expression * condition, ConstantExpr * message );
    365365        StaticAssertDecl( const StaticAssertDecl & other );
    366         virtual ~StaticAssertDecl();
    367366
    368367        virtual StaticAssertDecl * clone() const override { return new StaticAssertDecl( *this ); }
  • src/SynTree/Expression.cc

    r1cdfa82 r42107b4  
    268268}
    269269
    270 KeywordCastExpr::~KeywordCastExpr() {
    271         delete arg;
    272 }
    273 
    274270const std::string & KeywordCastExpr::targetString() const {
    275271        static const std::string targetStrs[] = {
  • src/SynTree/Expression.h

    r1cdfa82 r42107b4  
    210210        KeywordCastExpr( Expression * arg, Target target );
    211211        KeywordCastExpr( const KeywordCastExpr & other );
    212         virtual ~KeywordCastExpr();
    213212
    214213        const std::string & targetString() const;
  • src/SynTree/GcTracer.h

    r1cdfa82 r42107b4  
    7878        }
    7979
     80        void postvisit( OffsetofExpr* expr ) {
     81                postvisit( static_cast<Expression*>(expr) );
     82                maybeAccept( expr->member, *visitor );
     83        }
     84
    8085        void postvisit( UniqueExpr* expr ) {
    8186                postvisit( static_cast<Expression*>(expr) );
Note: See TracChangeset for help on using the changeset viewer.