Ignore:
Timestamp:
Feb 22, 2017, 2:42:11 PM (9 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
131dbb3, 692de479
Parents:
0788b739 (diff), fc39193 (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/InitTweak.cc

    r0788b739 r396ee0a  
    332332                        return nullptr;
    333333                }
     334        }
     335
     336        DeclarationWithType * getFunction( Expression * expr ) {
     337                if ( ApplicationExpr * appExpr = dynamic_cast< ApplicationExpr * >( expr ) ) {
     338                        return getCalledFunction( appExpr->get_function() );
     339                } else if ( UntypedExpr * untyped = dynamic_cast< UntypedExpr * > ( expr ) ) {
     340                        return getCalledFunction( untyped->get_function() );
     341                }
     342                assertf( false, "getFunction received unknown expression: %s", toString( expr ).c_str() );
    334343        }
    335344
Note: See TracChangeset for help on using the changeset viewer.