Changes in src/Validate/Autogen.cpp [d958834b:e8616b6]
- File:
-
- 1 edited
-
src/Validate/Autogen.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Validate/Autogen.cpp
rd958834b re8616b6 235 235 // Must visit children (enum constants) to add them to the symbol table. 236 236 if ( !enumDecl->body ) return; 237 238 // if ( auto enumBaseType = enumDecl->base ) {239 // if ( auto enumBaseTypeAsStructInst = dynamic_cast<const ast::StructInstType *>(enumBaseType.get()) ) {240 // const ast::StructDecl * structDecl = enumBaseTypeAsStructInst->base.get();241 // this->previsit( structDecl );242 // }243 // }244 237 245 238 ast::EnumInstType enumInst( enumDecl->name ); … … 377 370 ast::ObjectDecl * FuncGenerator::dstParam() const { 378 371 return new ast::ObjectDecl( getLocation(), "_dst", 379 new ast::ReferenceType( ast::deepCopy( type ) ), 380 nullptr, {}, ast::Linkage::Cforall ); 372 new ast::ReferenceType( ast::deepCopy( type ) ) ); 381 373 } 382 374 383 375 ast::ObjectDecl * FuncGenerator::srcParam() const { 384 376 return new ast::ObjectDecl( getLocation(), "_src", 385 ast::deepCopy( type ), 386 nullptr, {}, ast::Linkage::Cforall ); 377 ast::deepCopy( type ) ); 387 378 } 388 379 … … 436 427 ast::ObjectDecl * param = new ast::ObjectDecl( 437 428 getLocation(), member->name, paramType ); 438 param->linkage = ast::Linkage::Cforall;439 429 for ( auto & attr : member->attributes ) { 440 430 if ( attr->isValidOnFuncParam() ) {
Note:
See TracChangeset
for help on using the changeset viewer.