Skip to content

Commit 4977e5a

Browse files
committed
Suppress warnings for Swift C++ interop by hiding an operator declaration.
Solves the same kind of issue as #9590.
1 parent d2ed2d2 commit 4977e5a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/include/llvm/Analysis/ScalarEvolution.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,9 +1383,11 @@ class ScalarEvolution {
13831383
reinterpret_cast<uintptr_t>(Ty)));
13841384
}
13851385

1386+
#ifndef __swift__
13861387
bool operator==(const FoldID &RHS) const {
13871388
return std::tie(Op, Ty, C) == std::tie(RHS.Op, RHS.Ty, RHS.C);
13881389
}
1390+
#endif
13891391
};
13901392

13911393
private:

0 commit comments

Comments
 (0)