Changeset 4ac402d for src/ResolvExpr


Ignore:
Timestamp:
Oct 31, 2023, 10:39:33 AM (8 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
58c64323
Parents:
7d55e4d
Message:

Added a missing include (not sure how that slipped through) and did some other replacements so the new ast is the source of constants.

Location:
src/ResolvExpr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/CommonType.cc

    r7d55e4d r4ac402d  
    485485        // GENERATED END
    486486        static_assert(
    487                 sizeof(commonTypes)/sizeof(commonTypes[0][0]) == BasicType::NUMBER_OF_BASIC_TYPES * BasicType::NUMBER_OF_BASIC_TYPES,
     487                sizeof(commonTypes)/sizeof(commonTypes[0][0]) == ast::BasicType::NUMBER_OF_BASIC_TYPES * ast::BasicType::NUMBER_OF_BASIC_TYPES,
    488488                "Each basic type kind should have a corresponding row in the combined type matrix"
    489489        );
  • src/ResolvExpr/ConversionCost.cc

    r7d55e4d r4ac402d  
    268268        // GENERATED END
    269269        static_assert(
    270                 sizeof(costMatrix)/sizeof(costMatrix[0][0]) == BasicType::NUMBER_OF_BASIC_TYPES * BasicType::NUMBER_OF_BASIC_TYPES,
     270                sizeof(costMatrix)/sizeof(costMatrix[0][0]) == ast::BasicType::NUMBER_OF_BASIC_TYPES * ast::BasicType::NUMBER_OF_BASIC_TYPES,
    271271                "Missing row in the cost matrix"
    272272        );
     
    315315        // GENERATED END
    316316        static_assert(
    317                 sizeof(signMatrix)/sizeof(signMatrix[0][0]) == BasicType::NUMBER_OF_BASIC_TYPES * BasicType::NUMBER_OF_BASIC_TYPES,
     317                sizeof(signMatrix)/sizeof(signMatrix[0][0]) == ast::BasicType::NUMBER_OF_BASIC_TYPES * ast::BasicType::NUMBER_OF_BASIC_TYPES,
    318318                "Missing row in the sign matrix"
    319319        );
Note: See TracChangeset for help on using the changeset viewer.