Changes in src/GenPoly/LvalueNew.cpp [7fffb1b:251ce80]
- File:
-
- 1 edited
-
src/GenPoly/LvalueNew.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/LvalueNew.cpp
r7fffb1b r251ce80 25 25 #include "AST/Pass.hpp" 26 26 #include "Common/SemanticError.h" // for SemanticWarning 27 #include "Common/ToString.hpp" // for toCString 27 28 #include "Common/UniqueName.h" // for UniqueName 28 29 #include "GenPoly/GenPoly.h" // for genFunctionType … … 358 359 !ResolvExpr::typesCompatible( 359 360 srcType, 360 strict_dynamic_cast<ast::ReferenceType const *>( dstType )->base, 361 ast::SymbolTable() ) ) { 361 strict_dynamic_cast<ast::ReferenceType const *>( dstType )->base ) ) { 362 362 // Must keep cast if cast-to type is different from the actual type. 363 363 return ast::mutate_field( expr, &ast::CastExpr::arg, ret ); … … 376 376 if ( !ResolvExpr::typesCompatibleIgnoreQualifiers( 377 377 dstType->stripReferences(), 378 srcType->stripReferences(), 379 ast::SymbolTable() ) ) { 378 srcType->stripReferences() ) ) { 380 379 return ast::mutate_field( expr, &ast::CastExpr::arg, ret ); 381 380 } … … 392 391 ResolvExpr::typesCompatible( 393 392 expr->result, 394 expr->arg->result , ast::SymbolTable()) ) {393 expr->arg->result ) ) { 395 394 PRINT( 396 395 std::cerr << "types are compatible, removing cast: " << expr << '\n'; … … 589 588 ast::OpenVarSet openVars; 590 589 ResolvExpr::unify( ret->arg2->result, ret->arg3->result, newEnv, 591 needAssertions, haveAssertions, openVars, 592 ast::SymbolTable(), common ); 590 needAssertions, haveAssertions, openVars, common ); 593 591 ret->result = common ? common : ast::deepCopy( ret->arg2->result ); 594 592 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.