Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    r2b7bf59 r22bc276  
    540540                extension( nameExpr );
    541541                OperatorInfo opInfo;
    542                 if ( operatorLookup( nameExpr->name, opInfo ) ) {
    543                         if ( opInfo.type == OT_CONSTANT ) {
    544                                 output << opInfo.symbol;
    545                         } else {
    546                                 output << opInfo.outputName;
    547                         }
     542                if ( operatorLookup( nameExpr->get_name(), opInfo ) ) {
     543                        assert( opInfo.type == OT_CONSTANT );
     544                        output << opInfo.symbol;
    548545                } else {
    549546                        output << nameExpr->get_name();
     
    882879
    883880        void CodeGenerator::postvisit( CaseStmt * caseStmt ) {
    884                 updateLocation( caseStmt );
    885                 output << indent;
    886881                if ( caseStmt->isDefault()) {
    887882                        output << "default";
     
    10251020} // namespace CodeGen
    10261021
    1027 std::ostream & operator<<( std::ostream & out, const BaseSyntaxNode * node ) {
    1028         if ( node ) {
    1029                 node->print( out );
    1030         } else {
    1031                 out << "nullptr";
    1032         }
    1033         return out;
    1034 }
    1035 
    10361022// Local Variables: //
    10371023// tab-width: 4 //
Note: See TracChangeset for help on using the changeset viewer.