Changes in src/GenPoly/LvalueNew.cpp [251ce80:9feb34b]
- File:
-
- 1 edited
-
src/GenPoly/LvalueNew.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/LvalueNew.cpp
r251ce80 r9feb34b 359 359 !ResolvExpr::typesCompatible( 360 360 srcType, 361 strict_dynamic_cast<ast::ReferenceType const *>( dstType )->base ) ) { 361 strict_dynamic_cast<ast::ReferenceType const *>( dstType )->base, 362 ast::SymbolTable() ) ) { 362 363 // Must keep cast if cast-to type is different from the actual type. 363 364 return ast::mutate_field( expr, &ast::CastExpr::arg, ret ); … … 376 377 if ( !ResolvExpr::typesCompatibleIgnoreQualifiers( 377 378 dstType->stripReferences(), 378 srcType->stripReferences() ) ) { 379 srcType->stripReferences(), 380 ast::SymbolTable() ) ) { 379 381 return ast::mutate_field( expr, &ast::CastExpr::arg, ret ); 380 382 } … … 391 393 ResolvExpr::typesCompatible( 392 394 expr->result, 393 expr->arg->result ) ) {395 expr->arg->result, ast::SymbolTable() ) ) { 394 396 PRINT( 395 397 std::cerr << "types are compatible, removing cast: " << expr << '\n'; … … 588 590 ast::OpenVarSet openVars; 589 591 ResolvExpr::unify( ret->arg2->result, ret->arg3->result, newEnv, 590 needAssertions, haveAssertions, openVars, common ); 592 needAssertions, haveAssertions, openVars, 593 ast::SymbolTable(), common ); 591 594 ret->result = common ? common : ast::deepCopy( ret->arg2->result ); 592 595 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.