Changes in src/ResolvExpr/Unify.cc [07de76b:6f096d2]
- File:
-
- 1 edited
-
src/ResolvExpr/Unify.cc (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Unify.cc
r07de76b r6f096d2 9 9 // Author : Richard C. Bilson 10 10 // Created On : Sun May 17 12:27:10 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Fri Dec 13 23:43:05 201913 // Update Count : 4 611 // Last Modified By : Aaron B. Moss 12 // Last Modified On : Mon Jun 18 11:58:00 2018 13 // Update Count : 43 14 14 // 15 15 … … 32 32 #include "Common/PassVisitor.h" // for PassVisitor 33 33 #include "FindOpenVars.h" // for findOpenVars 34 #include " SynTree/LinkageSpec.h"// for C34 #include "Parser/LinkageSpec.h" // for C 35 35 #include "SynTree/Constant.h" // for Constant 36 36 #include "SynTree/Declaration.h" // for TypeDecl, TypeDecl::Data, Declarati... … … 278 278 #endif 279 279 if ( ( common = commonType( type1, type2, widen.first, widen.second, indexer, env, openVars ) ) ) { 280 common-> tq = tq1.unify( tq2 );280 common->get_qualifiers() = tq1 | tq2; 281 281 #ifdef DEBUG 282 282 std::cerr << "unifyInexact: common type is "; … … 295 295 if ( ( tq1 > tq2 || widen.first ) && ( tq2 > tq1 || widen.second ) ) { 296 296 common = type1->clone(); 297 common-> tq = tq1.unify( tq2 );297 common->get_qualifiers() = tq1 | tq2; 298 298 result = true; 299 299 } else { … … 302 302 } else { 303 303 common = type1->clone(); 304 common-> tq = tq1.unify( tq2 );304 common->get_qualifiers() = tq1 | tq2; 305 305 result = true; 306 306 } // if … … 781 781 if ( const ast::EqvClass * clz = tenv.lookup( typeInst->name ) ) { 782 782 // expand ttype parameter into its actual type 783 if ( clz->data.kind == ast::Type Decl::Ttype && clz->bound ) {783 if ( clz->data.kind == ast::TypeVar::Ttype && clz->bound ) { 784 784 return clz->bound; 785 785 }
Note:
See TracChangeset
for help on using the changeset viewer.