Skip to content

Commit 25dd93a

Browse files
authored
[TableGen] Add declarations to silence gcc warning. NFC (#125892)
Add declarations of SDTypeConstraint's operator== and operator< to the llvm namespace. These are declared as friends inside the class which makes them part of the enclosing namespace, but gcc wants it to be more explicit. Fixes #125537.
1 parent 251ece1 commit 25dd93a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/utils/TableGen/Common/CodeGenDAGPatterns.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,9 @@ struct SDTypeConstraint {
393393
const SDTypeConstraint &RHS);
394394
};
395395

396+
bool operator==(const SDTypeConstraint &LHS, const SDTypeConstraint &RHS);
397+
bool operator<(const SDTypeConstraint &LHS, const SDTypeConstraint &RHS);
398+
396399
/// ScopedName - A name of a node associated with a "scope" that indicates
397400
/// the context (e.g. instance of Pattern or PatFrag) in which the name was
398401
/// used. This enables substitution of pattern fragments while keeping track

0 commit comments

Comments
 (0)