Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    rb99fd56 r9939dc3  
    294294                                } else {
    295295                                        if ( obj->get_init() ) {
    296                                                 obj->get_init()->accept( *visitor );
     296                                                obj->get_init()->accept( *visitor ); 
    297297                                        } else {
    298298                                                // Should not reach here!
     
    683683                extension( variableExpr );
    684684                const OperatorInfo * opInfo;
    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 ) {
     685                if ( variableExpr->get_var()->get_linkage() == LinkageSpec::Intrinsic && (opInfo = operatorLookup( variableExpr->get_var()->get_name() )) && opInfo->type == OT_CONSTANT ) {
    688686                        output << opInfo->symbol;
    689687                } else {
    690                         // if (dynamic_cast<EnumInstType *>(variableExpr->get_var()->get_type())
     688                        // if (dynamic_cast<EnumInstType *>(variableExpr->get_var()->get_type()) 
    691689                        // && dynamic_cast<EnumInstType *>(variableExpr->get_var()->get_type())->baseEnum->base) {
    692690                        //      output << '(' <<genType(dynamic_cast<EnumInstType *>(variableExpr->get_var()->get_type())->baseEnum->base, "", options) << ')';
Note: See TracChangeset for help on using the changeset viewer.