Skip to content

Commit da17cd8

Browse files
authored
Merge pull request #10358 from tshortli/suppress-cxx-interop-cycle-warning-20240723
Suppress CXX interop cycle warning for the Swift compiler
2 parents bc6899f + 65170ec commit da17cd8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/include/llvm/Analysis/ScalarEvolution.h

Lines changed: 4 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:
@@ -2446,10 +2448,12 @@ template <> struct DenseMapInfo<ScalarEvolution::FoldID> {
24462448
return Val.computeHash();
24472449
}
24482450

2451+
#ifndef __swift__
24492452
static bool isEqual(const ScalarEvolution::FoldID &LHS,
24502453
const ScalarEvolution::FoldID &RHS) {
24512454
return LHS == RHS;
24522455
}
2456+
#endif
24532457
};
24542458

24552459
} // end namespace llvm

0 commit comments

Comments
 (0)