Skip to content

[clang] SemaOverload Qualifiers::isAddressSpaceSupersetOf called with wrong order of arguments #64020

Closed
@HoBoIs

Description

@HoBoIs

in clang/lib/Sema/SemaOverload.cpp clang::isBetterOverloadCandidate line 10243,10245 Qualifiers::isAddressSpaceSupersetOf is called with the same arguments (AS2, AS1), making the 2nd call unnecessary. I think the order of the parameters are meant to be swapped in one of them (I think in the 2nd one). This can lead to a future bug if Qualifiers::isAddressSpaceSupersetOf (AS1,AS2) is true and an other check is added later after line 10248.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions