Changeset 366f5cd for src/CodeGen
- Timestamp:
- Jun 23, 2026, 1:57:51 PM (2 days ago)
- Branches:
- master
- Children:
- 9d7a19f
- Parents:
- 45d0e65
- File:
-
- 1 edited
-
src/CodeGen/CodeGenerator.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cpp
r45d0e65 r366f5cd 10 10 // Created On : Tue Oct 17 15:54:00 2023 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Mar 11 11:13:10202613 // Update Count : 2812 // Last Modified On : Tue Jun 23 13:42:15 2026 13 // Update Count : 34 14 14 // 15 15 … … 778 778 779 779 void CodeGenerator::postvisit( ast::AlignofExpr const * expr ) { 780 // Using the GCC extension to avoid changing the std to C11. 781 extension( expr ); 782 output << "__alignof__("; 780 extension( expr ); 781 output << (expr->kind ? "__alignof__(" : "_Alignof("); 783 782 if ( auto type = expr->type.as<ast::TypeofType>() ) { 784 783 type->expr->accept( *visitor ); … … 790 789 791 790 void CodeGenerator::postvisit( ast::CountofExpr const * expr ) { 792 assertf( ! options.genC, "CountofExpr should not reach code generation." );791 assertf( ! options.genC, "CountofExpr should not reach code generation." ); 793 792 extension( expr ); 794 793 output << "countof(";
Note:
See TracChangeset
for help on using the changeset viewer.