Skip to content

Commit dcbb0f8

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

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
@@ -1388,9 +1388,11 @@ class ScalarEvolution {
13881388
reinterpret_cast<uintptr_t>(Ty)));
13891389
}
13901390

1391+
#ifndef __swift__
13911392
bool operator==(const FoldID &RHS) const {
13921393
return std::tie(Op, Ty, C) == std::tie(RHS.Op, RHS.Ty, RHS.C);
13931394
}
1395+
#endif
13941396
};
13951397

13961398
private:

0 commit comments

Comments
 (0)