Changeset 3d618a0 for src/CodeGen
- Timestamp:
- Sep 9, 2024, 6:16:09 PM (13 months ago)
- Branches:
- master
- Children:
- aa14aafe
- Parents:
- d93b813 (diff), f5dbc8d (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cpp
rd93b813 r3d618a0 744 744 extension( expr ); 745 745 output << "sizeof("; 746 if ( expr->type ) { 746 if ( auto type = expr->type.as<ast::TypeofType>() ) { 747 type->expr->accept( *visitor ); 748 } else { 747 749 output << genType( expr->type, "", options ); 748 } else {749 expr->expr->accept( *visitor );750 750 } 751 751 output << ")"; … … 756 756 extension( expr ); 757 757 output << "__alignof__("; 758 if ( expr->type ) { 758 if ( auto type = expr->type.as<ast::TypeofType>() ) { 759 type->expr->accept( *visitor ); 760 } else { 759 761 output << genType( expr->type, "", options ); 760 } else {761 expr->expr->accept( *visitor );762 762 } 763 763 output << ")";
Note:
See TracChangeset
for help on using the changeset viewer.