Skip to content

Commit 8fb90af

Browse files
authored
Merge pull request #10361 from tshortli/suppress-cxx-interop-cycle-warning
Fix error in ScalarEvolution.h when building the Swift compiler
2 parents 2dcb5b6 + a7d94a0 commit 8fb90af

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
@@ -2492,10 +2492,12 @@ template <> struct DenseMapInfo<ScalarEvolution::FoldID> {
24922492
return Val.computeHash();
24932493
}
24942494

2495+
#ifndef __swift__
24952496
static bool isEqual(const ScalarEvolution::FoldID &LHS,
24962497
const ScalarEvolution::FoldID &RHS) {
24972498
return LHS == RHS;
24982499
}
2500+
#endif
24992501
};
25002502

25012503
} // end namespace llvm

0 commit comments

Comments
 (0)