Changeset 42107b4
- Timestamp:
- Apr 26, 2018, 1:32:53 PM (7 years ago)
- Branches:
- new-env, with_gc
- Children:
- 7a37f258
- Parents:
- 1cdfa82
- git-author:
- Aaron Moss <a3moss@…> (04/25/18 17:44:18)
- git-committer:
- Aaron Moss <a3moss@…> (04/26/18 13:32:53)
- Location:
- src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/Keywords.cc
r1cdfa82 r42107b4 284 284 // convert (thread &)t to (thread_desc &)*get_thread(t), etc. 285 285 if( !type_decl ) SemanticError( cast, context_error ); 286 Expression * arg = cast->arg;287 cast->arg = nullptr;288 delete cast;289 286 return new CastExpr( 290 287 UntypedExpr::createDeref( 291 new UntypedExpr( new NameExpr( getter_name ), { arg } )288 new UntypedExpr( new NameExpr( getter_name ), { cast->arg } ) 292 289 ), 293 290 new ReferenceType( -
src/Parser/DeclarationNode.cc
r1cdfa82 r42107b4 93 93 94 94 delete assert.condition; 95 delete assert.message;96 95 } 97 96 -
src/SymTab/Validate.cc
r1cdfa82 r42107b4 312 312 } // if 313 313 // Always remove the hoisted aggregate from the inner structure. 314 GuardAction( [aggregateDecl]() { filter( aggregateDecl->members, shouldHoist , false); } );314 GuardAction( [aggregateDecl]() { filter( aggregateDecl->members, shouldHoist ); } ); 315 315 } 316 316 … … 692 692 new_static_root<BasicType>( Type::Qualifiers(), BasicType::LongUnsignedInt ); 693 693 } 694 filter( translationUnit, isTypedef , true);694 filter( translationUnit, isTypedef ); 695 695 } 696 696 … … 829 829 } // if 830 830 return false; 831 } , true);831 } ); 832 832 return compoundStmt; 833 833 } … … 837 837 template<typename AggDecl> 838 838 AggDecl *EliminateTypedef::handleAggregate( AggDecl * aggDecl ) { 839 filter( aggDecl->members, isTypedef , true);839 filter( aggDecl->members, isTypedef ); 840 840 return aggDecl; 841 841 } -
src/SynTree/Declaration.cc
r1cdfa82 r42107b4 80 80 } 81 81 82 StaticAssertDecl::~StaticAssertDecl() {83 delete condition;84 delete message;85 }86 87 82 void StaticAssertDecl::print( std::ostream &os, Indenter indent ) const { 88 83 os << "Static Assert with condition: "; -
src/SynTree/Declaration.h
r1cdfa82 r42107b4 364 364 StaticAssertDecl( Expression * condition, ConstantExpr * message ); 365 365 StaticAssertDecl( const StaticAssertDecl & other ); 366 virtual ~StaticAssertDecl();367 366 368 367 virtual StaticAssertDecl * clone() const override { return new StaticAssertDecl( *this ); } -
src/SynTree/Expression.cc
r1cdfa82 r42107b4 268 268 } 269 269 270 KeywordCastExpr::~KeywordCastExpr() {271 delete arg;272 }273 274 270 const std::string & KeywordCastExpr::targetString() const { 275 271 static const std::string targetStrs[] = { -
src/SynTree/Expression.h
r1cdfa82 r42107b4 210 210 KeywordCastExpr( Expression * arg, Target target ); 211 211 KeywordCastExpr( const KeywordCastExpr & other ); 212 virtual ~KeywordCastExpr();213 212 214 213 const std::string & targetString() const; -
src/SynTree/GcTracer.h
r1cdfa82 r42107b4 78 78 } 79 79 80 void postvisit( OffsetofExpr* expr ) { 81 postvisit( static_cast<Expression*>(expr) ); 82 maybeAccept( expr->member, *visitor ); 83 } 84 80 85 void postvisit( UniqueExpr* expr ) { 81 86 postvisit( static_cast<Expression*>(expr) );
Note: See TracChangeset
for help on using the changeset viewer.