Changeset 322b97e for src/ResolvExpr/AlternativeFinder.cc
- Timestamp:
- Aug 15, 2017, 1:27:46 PM (7 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:
- c6c6f2ae
- Parents:
- ae4038d
- git-author:
- Rob Schluntz <rschlunt@…> (08/15/17 13:27:32)
- git-committer:
- Rob Schluntz <rschlunt@…> (08/15/17 13:27:46)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/AlternativeFinder.cc
rae4038d r322b97e 941 941 void AlternativeFinder::visit( SizeofExpr *sizeofExpr ) { 942 942 if ( sizeofExpr->get_isType() ) { 943 // xxx - resolveTypeof?944 alternatives.push_back( Alternative( sizeofExpr->clone(), env, Cost::zero ) );943 Type * newType = sizeofExpr->get_type()->clone(); 944 alternatives.push_back( Alternative( new SizeofExpr( resolveTypeof( newType, indexer ) ), env, Cost::zero ) ); 945 945 } else { 946 946 // find all alternatives for the argument to sizeof … … 961 961 void AlternativeFinder::visit( AlignofExpr *alignofExpr ) { 962 962 if ( alignofExpr->get_isType() ) { 963 // xxx - resolveTypeof?964 alternatives.push_back( Alternative( alignofExpr->clone(), env, Cost::zero ) );963 Type * newType = alignofExpr->get_type()->clone(); 964 alternatives.push_back( Alternative( new AlignofExpr( resolveTypeof( newType, indexer ) ), env, Cost::zero ) ); 965 965 } else { 966 966 // find all alternatives for the argument to sizeof
Note: See TracChangeset
for help on using the changeset viewer.