Changeset 262a864 for src


Ignore:
Timestamp:
Dec 16, 2024, 9:37:09 PM (10 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
2980ccb8, 9b55aa3
Parents:
9a01745 (diff), 80018f5 (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.
Message:

merge

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/OperatorTable.cpp

    r9a01745 r262a864  
    7676        }
    7777
    78         if ( inputName.find_first_of( "?^*+-!", 0, 1 ) == std::string::npos ) return nullptr; // prefilter
    79         const OperatorInfo * ret = inputTable.find( inputName )->second;
     78        // Filter out non-operator names:
     79        if ( inputName.find_first_of( "?^*+-!", 0, 1 ) == std::string::npos ) return nullptr;
     80        auto entry = inputTable.find( inputName );
    8081        // This can only happen if an invalid identifier name has been used.
     82        assertf( entry != inputTable.end(), "Not a real operator: %s\n", inputName.c_str() );
     83        const OperatorInfo * ret = entry->second;
    8184        assert( ret );
    8285        return ret;
  • src/Validate/ReplaceTypedef.cpp

    r9a01745 r262a864  
    1010// Created On       : Tue Jun 29 14:59:00 2022
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Dec 14 16:11:51 2023
    13 // Update Count     : 4
     12// Last Modified On : Mon Dec 16 20:50:42 2024
     13// Update Count     : 5
    1414//
    1515
     
    135135};
    136136static bool dimensionPresenceMismatched( const ast::Type * t0, const ast::Type * t1) {
    137         std::vector<const ast::ArrayType *> at0s = std::move(
    138                 ast::Pass<ArrayTypeExtractor>::read( t0 ) );
    139         std::vector<const ast::ArrayType *> at1s = std::move(
    140                 ast::Pass<ArrayTypeExtractor>::read( t1 ) );
     137        std::vector<const ast::ArrayType *> at0s = ast::Pass<ArrayTypeExtractor>::read( t0 );
     138        std::vector<const ast::ArrayType *> at1s = ast::Pass<ArrayTypeExtractor>::read( t1 );
    141139        assert( at0s.size() == at1s.size() );
    142140        for (size_t i = 0; i < at0s.size(); i++) {
Note: See TracChangeset for help on using the changeset viewer.