Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Attribute.cpp

    r0b57626 r11f65b3  
    3838
    3939bool Attribute::isValidOnFuncParam() const {
    40         // attributes such as aligned, cleanup, etc. produce GCC errors when they appear
    41         // on function parameters. Maintain here a whitelist of attribute names that are
    42         // allowed to appear on parameters.
     40        // Attributes produce GCC errors when they appear on function
     41        // parameters. Names on the previous allow-list implementation:
     42        // unused, noreturn, __vector_size__
    4343        std::string norm = normalizedName();
    44         return norm == "unused" || norm == "noreturn";
     44        return norm != "aligned" && norm != "packed" && norm != "used";
    4545}
    4646
Note: See TracChangeset for help on using the changeset viewer.