Ignore:
Timestamp:
Jul 3, 2015, 6:08:20 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:
f6d7e0f
Parents:
0df292b
Message:

include file with keywords, fix type of label address expressions, fix computed goto to any expressions, generic types first attempt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/AlternativeFinder.cc

    r0df292b r2871210  
    1010// Created On       : Sat May 16 23:52:08 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Jun 22 17:19:54 2015
    13 // Update Count     : 17
     12// Last Modified On : Fri Jul  3 17:58:39 2015
     13// Update Count     : 22
    1414//
    1515
     
    543543
    544544                AlternativeFinder funcFinder( indexer, env ); {
    545                         NameExpr *fname;
     545                        NameExpr *fname = 0;;
    546546                        if ( ( fname = dynamic_cast<NameExpr *>( untypedExpr->get_function()))
    547547                                 && ( fname->get_name() == std::string("&&")) ) {
    548                                 alternatives.push_back( Alternative( untypedExpr->clone(), env, Cost()) );
     548                                VoidType v = Type::Qualifiers();                // resolve to type void *
     549                                PointerType pt( Type::Qualifiers(), v.clone() );
     550                                UntypedExpr *vexpr = untypedExpr->clone();
     551                                vexpr->get_results().push_front( pt.clone() );
     552                                alternatives.push_back( Alternative( vexpr, env, Cost()) );
    549553                                return;
    550554                        }
Note: See TracChangeset for help on using the changeset viewer.