Ignore:
Timestamp:
Aug 31, 2023, 11:31:15 PM (2 years ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
950c58e
Parents:
92355883 (diff), 686912c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Resolve conflict

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/FixFunction.cc

    r92355883 r2a301ff  
    109109
    110110                const ast::DeclWithType * postvisit( const ast::FunctionDecl * func ) {
    111                         return new ast::ObjectDecl{
    112                                 func->location, func->name, new ast::PointerType{ func->type }, nullptr,
     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,
    113115                                func->storage, func->linkage, nullptr, copy( func->attributes ) };
    114116                }
     
    117119
    118120                const ast::Type * postvisit( const ast::ArrayType * array ) {
    119                         return new ast::PointerType{ 
    120                                 array->base, array->dimension, array->isVarLen, array->isStatic, 
     121                        return new ast::PointerType{
     122                                array->base, array->dimension, array->isVarLen, array->isStatic,
    121123                                array->qualifiers };
    122124                }
Note: See TracChangeset for help on using the changeset viewer.