Ignore:
Timestamp:
May 27, 2016, 4:16:53 PM (8 years ago)
Author:
Thierry Delisle <tdelisle@…>
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, with_gc
Children:
725f36f5
Parents:
aad5a48 (diff), 677c1be (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.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixInit.cc

    raad5a48 r10e81ac  
    131131                                // optimization: don't need to copy construct in order to call intrinsic functions
    132132                                return appExpr;
    133                         } else if ( FunctionDecl * funcDecl = dynamic_cast< FunctionDecl * > ( function->get_var() ) ) {
    134                                 FunctionType * ftype = funcDecl->get_functionType();
     133                        } else if ( DeclarationWithType * funcDecl = dynamic_cast< DeclarationWithType * > ( function->get_var() ) ) {
     134                                // FunctionType * ftype = funcDecl->get_functionType();
     135                                FunctionType * ftype = dynamic_cast< FunctionType * >( GenPoly::getFunctionType( funcDecl->get_type() ) );
     136                                assert( ftype );
    135137                                if ( (funcDecl->get_name() == "?{}" || funcDecl->get_name() == "?=?") && ftype->get_parameters().size() == 2 ) {
    136138                                        Type * t1 = ftype->get_parameters().front()->get_type();
     
    138140                                        PointerType * ptrType = dynamic_cast< PointerType * > ( t1 );
    139141                                        assert( ptrType );
     142
    140143                                        if ( ResolvExpr::typesCompatible( ptrType->get_base(), t2, SymTab::Indexer() ) ) {
    141144                                                // optimization: don't need to copy construct in order to call a copy constructor or
Note: See TracChangeset for help on using the changeset viewer.