Changeset b2ecd48 for src/SymTab
- Timestamp:
- Jul 4, 2023, 2:10:54 PM (10 months ago)
- Branches:
- master
- Children:
- 7f1be01
- Parents:
- 0ec4eb0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/FixFunction.cc
r0ec4eb0 rb2ecd48 109 109 110 110 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, 113 115 func->storage, func->linkage, nullptr, copy( func->attributes ) }; 114 116 } … … 117 119 118 120 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, 121 123 array->qualifiers }; 122 124 }
Note: See TracChangeset
for help on using the changeset viewer.