Changeset b3f9a0cb for src/ResolvExpr/Resolver.cc
- Timestamp:
- Apr 4, 2016, 1:18:17 PM (8 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:
- afc1045
- Parents:
- 89173242 (diff), 3cfe27f (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cc
r89173242 rb3f9a0cb 10 10 // Created On : Sun May 17 12:17:01 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : T ue Feb 9 21:57:52201613 // Update Count : 1 7912 // Last Modified On : Thu Mar 24 16:43:11 2016 13 // Update Count : 181 14 14 // 15 15 … … 165 165 Type *new_type = resolveTypeof( objectDecl->get_type(), *this ); 166 166 objectDecl->set_type( new_type ); 167 // To handle initialization of routine pointers, e.g., int (*fp)(int) = foo(), means that class-variable 168 // initContext is changed multiple time because the LHS is analysed twice. The second analysis changes 169 // initContext because of a function type can contain object declarations in the return and parameter types. So 170 // each value of initContext is retained, so the type on the first analysis is preserved and used for selecting 171 // the RHS. 172 Type *temp = initContext; 167 173 initContext = new_type; 168 174 SymTab::Indexer::visit( objectDecl ); 175 initContext = temp; 169 176 } 170 177
Note: See TracChangeset
for help on using the changeset viewer.