Changeset 24670d2
- Timestamp:
- Sep 8, 2016, 11:04:13 AM (8 years ago)
- 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:
- 119745e, cd14861, ee1635c8
- Parents:
- 02cea2d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Indexer.cc
r02cea2d r24670d2 145 145 std::list< DeclarationWithType * > params = function->get_functionType()->get_parameters(); 146 146 assert( ! params.empty() ); 147 funcMap[ Mangler::mangle( params.front()->get_type() ) ] += function; 147 // use base type of pointer, so that qualifiers on the pointer type aren't considered. 148 Type * base = safe_dynamic_cast< PointerType * >( params.front()->get_type() )->get_base(); 149 funcMap[ Mangler::mangle( base ) ] += function; 148 150 } else { 149 151 out.push_back( decl );
Note: See TracChangeset
for help on using the changeset viewer.