- Timestamp:
- Jan 8, 2025, 1:00:13 PM (12 days ago)
- Branches:
- master
- Children:
- 658f3179
- Parents:
- 190a833
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Box.cpp
r190a833 rd84f2ae 95 95 ast::TypeInstType inst( sizedParam ); 96 96 std::string paramName = Mangle::mangleType( &inst ); 97 params.emplace_back(new ast::ObjectDecl(97 auto sizeofParam = new ast::ObjectDecl( 98 98 sizedParam->location, 99 99 sizeofName( paramName ), 100 100 getLayoutCType( transUnit ) 101 ) ); 102 auto alignParam = new ast::ObjectDecl( 101 ); 102 sizeofParam->attributes.push_back( new ast::Attribute( "unused" ) ); 103 params.emplace_back( sizeofParam ); 104 auto alignofParam = new ast::ObjectDecl( 103 105 sizedParam->location, 104 106 alignofName( paramName ), 105 107 getLayoutCType( transUnit ) 106 108 ); 107 align Param->attributes.push_back( new ast::Attribute( "unused" ) );108 params.emplace_back( align Param );109 alignofParam->attributes.push_back( new ast::Attribute( "unused" ) ); 110 params.emplace_back( alignofParam ); 109 111 } 110 112 }
Note: See TracChangeset
for help on using the changeset viewer.