Skip to content

Commit a7d94a0

Browse files
committed
Fix error in ScalarEvolution.h when building the Swift compiler.
Follow up to #10359.
1 parent dcbb0f8 commit a7d94a0

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)