Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/LvalueNew.cpp

    r251ce80 r7fffb1b  
    2525#include "AST/Pass.hpp"
    2626#include "Common/SemanticError.h"      // for SemanticWarning
    27 #include "Common/ToString.hpp"         // for toCString
    2827#include "Common/UniqueName.h"         // for UniqueName
    2928#include "GenPoly/GenPoly.h"           // for genFunctionType
     
    359358                                !ResolvExpr::typesCompatible(
    360359                                        srcType,
    361                                         strict_dynamic_cast<ast::ReferenceType const *>( dstType )->base ) ) {
     360                                        strict_dynamic_cast<ast::ReferenceType const *>( dstType )->base,
     361                                        ast::SymbolTable() ) ) {
    362362                        // Must keep cast if cast-to type is different from the actual type.
    363363                        return ast::mutate_field( expr, &ast::CastExpr::arg, ret );
     
    376376                if ( !ResolvExpr::typesCompatibleIgnoreQualifiers(
    377377                                dstType->stripReferences(),
    378                                 srcType->stripReferences() ) ) {
     378                                srcType->stripReferences(),
     379                                ast::SymbolTable() ) ) {
    379380                        return ast::mutate_field( expr, &ast::CastExpr::arg, ret );
    380381                }
     
    391392                                ResolvExpr::typesCompatible(
    392393                                        expr->result,
    393                                         expr->arg->result ) ) {
     394                                        expr->arg->result, ast::SymbolTable() ) ) {
    394395                        PRINT(
    395396                                std::cerr << "types are compatible, removing cast: " << expr << '\n';
     
    588589                ast::OpenVarSet openVars;
    589590                ResolvExpr::unify( ret->arg2->result, ret->arg3->result, newEnv,
    590                         needAssertions, haveAssertions, openVars, common );
     591                        needAssertions, haveAssertions, openVars,
     592                        ast::SymbolTable(), common );
    591593                ret->result = common ? common : ast::deepCopy( ret->arg2->result );
    592594                return ret;
Note: See TracChangeset for help on using the changeset viewer.