Skip to content

Commit d3da328

Browse files
authored
Merge pull request #28765 from compnerd/28738
AST: explicitly indicate operator==
2 parents 53f1b70 + dedde46 commit d3da328

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/swift/AST/AutoDiff.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ template <> struct DenseMapInfo<AutoDiffDerivativeFunctionKind> {
169169

170170
static bool isEqual(const AutoDiffDerivativeFunctionKind &LHS,
171171
const AutoDiffDerivativeFunctionKind &RHS) {
172-
return LHS == RHS;
172+
return static_cast<AutoDiffDerivativeFunctionKind::innerty>(LHS) ==
173+
static_cast<AutoDiffDerivativeFunctionKind::innerty>(RHS);
173174
}
174175
};
175176

0 commit comments

Comments
 (0)