Changeset 13edbac for src/ResolvExpr
- Timestamp:
- Oct 28, 2022, 5:12:26 PM (3 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- be5f0a5
- Parents:
- 2856982c (diff), fa2e183 (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. - Location:
- src/ResolvExpr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/CommonType.cc
r2856982c r13edbac 991 991 add_qualifiers( result, type2->qualifiers ); 992 992 } else { 993 // xxx - does unifying a ref with typed enumInst makes sense?994 993 if (!dynamic_cast<const ast::EnumInstType *>(type2)) 995 994 result = commonType( type2, ref, tenv, need, have, open, widen, symtab ); … … 1010 1009 1011 1010 void postvisit( const ast::EnumInstType * enumInst ) { 1012 // reuse BasicType/EnumInstType common type by swapping1013 // xxx - is this already handled by unify?1014 1011 if (!dynamic_cast<const ast::EnumInstType *>(type2)) 1015 1012 result = commonType( type2, enumInst, tenv, need, have, open, widen, symtab); -
src/ResolvExpr/ConversionCost.cc
r2856982c r13edbac 720 720 costCalc( baseType, dst, srcIsLvalue, symtab, env ); 721 721 } else { 722 (void)enumInstType;723 722 static ast::ptr<ast::BasicType> integer = { new ast::BasicType( ast::BasicType::SignedInt ) }; 724 723 cost = costCalc( integer, dst, srcIsLvalue, symtab, env );
Note:
See TracChangeset
for help on using the changeset viewer.