Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/FixFunction.cc

    rb2ecd48 r9feb34b  
    109109
    110110                const ast::DeclWithType * postvisit( const ast::FunctionDecl * func ) {
    111                         // Cannot handle cases with asserions.
    112                         assert( func->assertions.empty() );
    113                         return new ast::ObjectDecl{
    114                                 func->location, func->name, new ast::PointerType( func->type ), nullptr,
     111                        return new ast::ObjectDecl{
     112                                func->location, func->name, new ast::PointerType{ func->type }, nullptr,
    115113                                func->storage, func->linkage, nullptr, copy( func->attributes ) };
    116114                }
     
    119117
    120118                const ast::Type * postvisit( const ast::ArrayType * array ) {
    121                         return new ast::PointerType{
    122                                 array->base, array->dimension, array->isVarLen, array->isStatic,
     119                        return new ast::PointerType{ 
     120                                array->base, array->dimension, array->isVarLen, array->isStatic, 
    123121                                array->qualifiers };
    124122                }
Note: See TracChangeset for help on using the changeset viewer.