Changes in src/ResolvExpr/Unify.cc [ce8c12f:b2daebd4]
- File:
-
- 1 edited
-
src/ResolvExpr/Unify.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Unify.cc
rce8c12f rb2daebd4 42 42 virtual void visit(PointerType *pointerType); 43 43 virtual void visit(ArrayType *arrayType); 44 virtual void visit(ReferenceType *refType);45 44 virtual void visit(FunctionType *functionType); 46 45 virtual void visit(StructInstType *aggregateUseType); … … 429 428 } 430 429 431 void Unify::visit(ReferenceType *refType) {432 if ( ReferenceType *otherRef = dynamic_cast< ReferenceType* >( type2 ) ) {433 result = unifyExact( refType->get_base(), otherRef->get_base(), env, needAssertions, haveAssertions, openVars, WidenMode( false, false ), indexer );434 markAssertions( haveAssertions, needAssertions, refType );435 markAssertions( haveAssertions, needAssertions, otherRef );436 } // if437 }438 439 430 void Unify::visit(ArrayType *arrayType) { 440 431 ArrayType *otherArray = dynamic_cast< ArrayType* >( type2 ); … … 604 595 TypeExpr *otherParam = dynamic_cast< TypeExpr* >(*jt); 605 596 assertf(otherParam, "Aggregate parameters should be type expressions"); 606 597 607 598 Type* paramTy = param->get_type(); 608 599 Type* otherParamTy = otherParam->get_type();
Note:
See TracChangeset
for help on using the changeset viewer.