Ignore:
Timestamp:
May 14, 2015, 1:44:55 PM (9 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
4bf5298
Parents:
d4778a6
Message:

add inline and attribute qualifiers, cfa.y comment formatting, fix error message in isIntegralType

File:
1 edited

Legend:

Unmodified
Added
Removed
  • translator/ResolvExpr/Resolver.cc

    rd4778a6 rc11e31c  
    9898                return bt->isInteger();
    9999            } else {
    100                 return true;
     100                return false;
    101101            } // if
    102102        }
     
    121121                if ( i->expr->get_results().size() == 1 && isIntegralType( i->expr->get_results().front() ) ) {
    122122                    if ( newExpr ) {
    123                         throw SemanticError( "Too many interpretations for switch control expression", untyped );
     123                        throw SemanticError( "Too many interpretations for case control expression", untyped );
    124124                    } else {
    125125                        newExpr = i->expr->clone();
     
    128128                } // if
    129129            } // for
    130             if ( !newExpr ) {
    131                 throw SemanticError( "Too many interpretations for switch control expression", untyped );
     130            if ( ! newExpr ) {
     131                throw SemanticError( "No interpretations for case control expression", untyped );
    132132            } // if
    133133            finishExpr( newExpr, *newEnv );
Note: See TracChangeset for help on using the changeset viewer.