Changeset fe26fbf for src/ResolvExpr
- Timestamp:
- Feb 7, 2017, 1:01:34 PM (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:
- 35b1bf4
- Parents:
- dbe8f244 (diff), b4d65c7 (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
rdbe8f244 rfe26fbf 449 449 TypeSubstitution sub = makeGenericSubstitutuion( sit ); 450 450 StructDecl * st = sit->get_baseStruct(); 451 if(st->get_members().empty()) return; 451 452 // want to resolve each initializer to the members of the struct, 452 453 // but if there are more initializers than members we should stop … … 458 459 TypeSubstitution sub = makeGenericSubstitutuion( uit ); 459 460 UnionDecl * un = uit->get_baseUnion(); 461 if(un->get_members().empty()) return; 460 462 // only resolve to the first member of a union 461 463 resolveSingleAggrInit( *un->get_members().begin(), init, initEnd, sub );
Note: See TracChangeset
for help on using the changeset viewer.