Changeset 3e54399 for src/CodeGen
- Timestamp:
- Mar 10, 2022, 2:03:43 AM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
- Children:
- f238fcc2
- Parents:
- 786c438
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cc
r786c438 r3e54399 348 348 des->accept( *visitor ); 349 349 } else { 350 // otherwise, it has to be a ConstantExpr or CastExpr, initializing array ele emnt350 // otherwise, it has to be a ConstantExpr or CastExpr, initializing array element 351 351 output << "["; 352 352 des->accept( *visitor ); … … 662 662 output << opInfo->symbol; 663 663 } else { 664 if (dynamic_cast<EnumInstType *>(variableExpr->get_var()->get_type()) 665 && dynamic_cast<EnumInstType *>(variableExpr->get_var()->get_type())->baseEnum->base) { 666 output << '(' <<genType(dynamic_cast<EnumInstType *>(variableExpr->get_var()->get_type())->baseEnum->base, "", options) << ')'; 667 } 664 668 output << mangleName( variableExpr->get_var() ); 665 669 } // if
Note: See TracChangeset
for help on using the changeset viewer.