Ignore:
Timestamp:
Jun 1, 2023, 6:29:47 PM (13 months ago)
Author:
Fangren Yu <f37yu@…>
Branches:
ast-experimental, master
Children:
24d6572, ded6c2a6
Parents:
1803d4d
Message:

remove reference to symbol table in unify

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/LvalueNew.cpp

    r1803d4d r251ce80  
    359359                                !ResolvExpr::typesCompatible(
    360360                                        srcType,
    361                                         strict_dynamic_cast<ast::ReferenceType const *>( dstType )->base,
    362                                         ast::SymbolTable() ) ) {
     361                                        strict_dynamic_cast<ast::ReferenceType const *>( dstType )->base ) ) {
    363362                        // Must keep cast if cast-to type is different from the actual type.
    364363                        return ast::mutate_field( expr, &ast::CastExpr::arg, ret );
     
    377376                if ( !ResolvExpr::typesCompatibleIgnoreQualifiers(
    378377                                dstType->stripReferences(),
    379                                 srcType->stripReferences(),
    380                                 ast::SymbolTable() ) ) {
     378                                srcType->stripReferences() ) ) {
    381379                        return ast::mutate_field( expr, &ast::CastExpr::arg, ret );
    382380                }
     
    393391                                ResolvExpr::typesCompatible(
    394392                                        expr->result,
    395                                         expr->arg->result, ast::SymbolTable() ) ) {
     393                                        expr->arg->result ) ) {
    396394                        PRINT(
    397395                                std::cerr << "types are compatible, removing cast: " << expr << '\n';
     
    590588                ast::OpenVarSet openVars;
    591589                ResolvExpr::unify( ret->arg2->result, ret->arg3->result, newEnv,
    592                         needAssertions, haveAssertions, openVars,
    593                         ast::SymbolTable(), common );
     590                        needAssertions, haveAssertions, openVars, common );
    594591                ret->result = common ? common : ast::deepCopy( ret->arg2->result );
    595592                return ret;
Note: See TracChangeset for help on using the changeset viewer.