Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/LvalueNew.cpp

    r251ce80 r9feb34b  
    359359                                !ResolvExpr::typesCompatible(
    360360                                        srcType,
    361                                         strict_dynamic_cast<ast::ReferenceType const *>( dstType )->base ) ) {
     361                                        strict_dynamic_cast<ast::ReferenceType const *>( dstType )->base,
     362                                        ast::SymbolTable() ) ) {
    362363                        // Must keep cast if cast-to type is different from the actual type.
    363364                        return ast::mutate_field( expr, &ast::CastExpr::arg, ret );
     
    376377                if ( !ResolvExpr::typesCompatibleIgnoreQualifiers(
    377378                                dstType->stripReferences(),
    378                                 srcType->stripReferences() ) ) {
     379                                srcType->stripReferences(),
     380                                ast::SymbolTable() ) ) {
    379381                        return ast::mutate_field( expr, &ast::CastExpr::arg, ret );
    380382                }
     
    391393                                ResolvExpr::typesCompatible(
    392394                                        expr->result,
    393                                         expr->arg->result ) ) {
     395                                        expr->arg->result, ast::SymbolTable() ) ) {
    394396                        PRINT(
    395397                                std::cerr << "types are compatible, removing cast: " << expr << '\n';
     
    588590                ast::OpenVarSet openVars;
    589591                ResolvExpr::unify( ret->arg2->result, ret->arg3->result, newEnv,
    590                         needAssertions, haveAssertions, openVars, common );
     592                        needAssertions, haveAssertions, openVars,
     593                        ast::SymbolTable(), common );
    591594                ret->result = common ? common : ast::deepCopy( ret->arg2->result );
    592595                return ret;
Note: See TracChangeset for help on using the changeset viewer.