Changeset bf4fe05 for src/ResolvExpr/ConversionCost.cpp
- Timestamp:
- May 13, 2024, 7:07:06 AM (17 months ago)
- Branches:
- master
- Children:
- ca4f2b2
- Parents:
- ec20ab9 (diff), 5f225f5 (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 moved
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/ConversionCost.cpp
rec20ab9 rbf4fe05 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // ConversionCost.c c--7 // ConversionCost.cpp -- 8 8 // 9 9 // Author : Richard C. Bilson … … 14 14 // 15 15 16 #include "ConversionCost.h "16 #include "ConversionCost.hpp" 17 17 18 18 #include <cassert> // for assert … … 20 20 #include <string> // for operator==, string 21 21 22 #include "ResolvExpr/Cost.h "// for Cost23 #include "ResolvExpr/Unify.h "// for typesCompatibleIgnoreQualifiers22 #include "ResolvExpr/Cost.hpp" // for Cost 23 #include "ResolvExpr/Unify.hpp" // for typesCompatibleIgnoreQualifiers 24 24 #include "ResolvExpr/PtrsAssignable.hpp" // for ptrsAssignable 25 25 … … 283 283 cost = costCalc( basicType, integer, srcIsLvalue, symtab, env ); 284 284 } else if ( auto dstAsEnumInst = dynamic_cast< const ast::EnumInstType * >( dst ) ) { 285 if ( dstAsEnumInst->base && !dstAsEnumInst->base-> base) {285 if ( dstAsEnumInst->base && !dstAsEnumInst->base->isTyped ) { 286 286 cost = Cost::unsafe; 287 287 } … … 480 480 // assuming 0p is supposed to be used for pointers? 481 481 } else if ( auto dstAsEnumInst = dynamic_cast< const ast::EnumInstType * >( dst ) ) { 482 if ( dstAsEnumInst->base && !dstAsEnumInst->base-> base) {482 if ( dstAsEnumInst->base && !dstAsEnumInst->base->isTyped ) { 483 483 cost = Cost::unsafe; 484 484 } … … 501 501 } 502 502 } else if ( auto dstAsEnumInst = dynamic_cast< const ast::EnumInstType * >( dst ) ) { 503 if ( dstAsEnumInst->base && !dstAsEnumInst->base-> base) {503 if ( dstAsEnumInst->base && !dstAsEnumInst->base->isTyped ) { 504 504 cost = Cost::unsafe; 505 505 }
Note:
See TracChangeset
for help on using the changeset viewer.