Changeset 6e21aaf for src/CodeGen/CodeGenerator.cc
- Timestamp:
- Jun 26, 2022, 10:29:22 PM (4 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
- Children:
- 9b817e15
- Parents:
- 8446c18 (diff), 91715ce1 (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
-
src/CodeGen/CodeGenerator.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cc
r8446c18 r6e21aaf 294 294 } else { 295 295 if ( obj->get_init() ) { 296 obj->get_init()->accept( *visitor ); 296 obj->get_init()->accept( *visitor ); 297 297 } else { 298 298 // Should not reach here! … … 683 683 extension( variableExpr ); 684 684 const OperatorInfo * opInfo; 685 if ( variableExpr->get_var()->get_linkage() == LinkageSpec::Intrinsic && (opInfo = operatorLookup( variableExpr->get_var()->get_name() )) && opInfo->type == OT_CONSTANT ) { 685 if( dynamic_cast<ZeroType*>( variableExpr->get_var()->get_type() ) ) { 686 output << "0"; 687 } else if ( variableExpr->get_var()->get_linkage() == LinkageSpec::Intrinsic && (opInfo = operatorLookup( variableExpr->get_var()->get_name() )) && opInfo->type == OT_CONSTANT ) { 686 688 output << opInfo->symbol; 687 689 } else { 688 // if (dynamic_cast<EnumInstType *>(variableExpr->get_var()->get_type()) 690 // if (dynamic_cast<EnumInstType *>(variableExpr->get_var()->get_type()) 689 691 // && dynamic_cast<EnumInstType *>(variableExpr->get_var()->get_type())->baseEnum->base) { 690 692 // output << '(' <<genType(dynamic_cast<EnumInstType *>(variableExpr->get_var()->get_type())->baseEnum->base, "", options) << ')';
Note:
See TracChangeset
for help on using the changeset viewer.