Changes in src/ResolvExpr/CommonType.cc [ef1da0e2:e874605]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/CommonType.cc
ref1da0e2 re874605 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);
Note: See TracChangeset
for help on using the changeset viewer.