Changeset 7754cde for src/GenPoly/GenPoly.cc
- Timestamp:
- Dec 16, 2015, 4:59:58 PM (9 years ago)
- 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:
- 69911c11
- Parents:
- 0f889a77
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/GenPoly.cc
r0f889a77 r7754cde 149 149 } 150 150 151 FunctionType * getFunctionType( Type *ty ) { 152 PointerType *ptrType; 153 if ( ( ptrType = dynamic_cast< PointerType* >( ty ) ) ) { 154 return dynamic_cast< FunctionType* >( ptrType->get_base() ); // pointer if FunctionType, NULL otherwise 155 } else { 156 return dynamic_cast< FunctionType* >( ty ); // pointer if FunctionType, NULL otherwise 157 } 158 } 159 151 160 void printTyVarMap( std::ostream &os, const TyVarMap &tyVarMap ) { 152 161 for ( TyVarMap::const_iterator i = tyVarMap.begin(); i != tyVarMap.end(); ++i ) {
Note: See TracChangeset
for help on using the changeset viewer.