Changeset 3627356 for src/GenPoly


Ignore:
Timestamp:
Mar 3, 2016, 1:46:51 PM (8 years ago)
Author:
Aaron Moss <a3moss@…>
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
Message:

Fix compile-bugs in draft of layout function generation pass

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/Box.cc

    r36ebd03 r3627356  
    227227
    228228                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 ) {
    230230                                otypeDecls.push_back( *decl );
    231231                        }
     
    276276        /// makes an if-statement with a single-expression if-block and no then block
    277277        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 );
    279279        }
    280280
     
    303303        }
    304304       
    305         virtual Declaration *LayoutFunctionBuilder::mutate( StructDecl *structDecl ) {
     305        Declaration *LayoutFunctionBuilder::mutate( StructDecl *structDecl ) {
    306306                // do not generate layout function for "empty" tag structs
    307307                if ( structDecl->get_members().empty() ) return structDecl;
     
    363363        }
    364364       
    365         virtual Declaration *LayoutFunctionBuilder::mutate( UnionDecl *unionDecl ) {
     365        Declaration *LayoutFunctionBuilder::mutate( UnionDecl *unionDecl ) {
    366366                // do not generate layout function for "empty" tag unions
    367367                if ( unionDecl->get_members().empty() ) return unionDecl;
Note: See TracChangeset for help on using the changeset viewer.