Changeset 3627356 for src/GenPoly
- Timestamp:
- Mar 3, 2016, 1:46:51 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- bd91e2a
- Parents:
- 36ebd03
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Box.cc
r36ebd03 r3627356 227 227 228 228 for ( std::list< TypeDecl* >::const_iterator decl = decls.begin(); decl != decls.end(); ++decl ) { 229 if ( decl->get_kind() == TypeDecl::Any ) {229 if ( (*decl)->get_kind() == TypeDecl::Any ) { 230 230 otypeDecls.push_back( *decl ); 231 231 } … … 276 276 /// makes an if-statement with a single-expression if-block and no then block 277 277 Statement *makeCond( Expression *cond, Expression *ifPart ) { 278 return new IfStmt( noLabels, cond, new ExprStmt( ifPart ), 0 );278 return new IfStmt( noLabels, cond, new ExprStmt( noLabels, ifPart ), 0 ); 279 279 } 280 280 … … 303 303 } 304 304 305 virtualDeclaration *LayoutFunctionBuilder::mutate( StructDecl *structDecl ) {305 Declaration *LayoutFunctionBuilder::mutate( StructDecl *structDecl ) { 306 306 // do not generate layout function for "empty" tag structs 307 307 if ( structDecl->get_members().empty() ) return structDecl; … … 363 363 } 364 364 365 virtualDeclaration *LayoutFunctionBuilder::mutate( UnionDecl *unionDecl ) {365 Declaration *LayoutFunctionBuilder::mutate( UnionDecl *unionDecl ) { 366 366 // do not generate layout function for "empty" tag unions 367 367 if ( unionDecl->get_members().empty() ) return unionDecl;
Note: See TracChangeset
for help on using the changeset viewer.