Changeset 8a930c03 for src/GenPoly/LvalueNew.cpp
- Timestamp:
- Jun 12, 2023, 12:05:58 PM (2 years ago)
- Branches:
- master
- Children:
- fec8bd1
- Parents:
- 2b78949 (diff), 38e266ca (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/LvalueNew.cpp
r2b78949 r8a930c03 359 359 !ResolvExpr::typesCompatible( 360 360 srcType, 361 strict_dynamic_cast<ast::ReferenceType const *>( dstType )->base, 362 ast::SymbolTable() ) ) { 361 strict_dynamic_cast<ast::ReferenceType const *>( dstType )->base ) ) { 363 362 // Must keep cast if cast-to type is different from the actual type. 364 363 return ast::mutate_field( expr, &ast::CastExpr::arg, ret ); … … 377 376 if ( !ResolvExpr::typesCompatibleIgnoreQualifiers( 378 377 dstType->stripReferences(), 379 srcType->stripReferences(), 380 ast::SymbolTable() ) ) { 378 srcType->stripReferences() ) ) { 381 379 return ast::mutate_field( expr, &ast::CastExpr::arg, ret ); 382 380 } … … 393 391 ResolvExpr::typesCompatible( 394 392 expr->result, 395 expr->arg->result , ast::SymbolTable()) ) {393 expr->arg->result ) ) { 396 394 PRINT( 397 395 std::cerr << "types are compatible, removing cast: " << expr << '\n'; … … 590 588 ast::OpenVarSet openVars; 591 589 ResolvExpr::unify( ret->arg2->result, ret->arg3->result, newEnv, 592 needAssertions, haveAssertions, openVars, 593 ast::SymbolTable(), common ); 590 needAssertions, haveAssertions, openVars, common ); 594 591 ret->result = common ? common : ast::deepCopy( ret->arg2->result ); 595 592 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.