From a7d94a0f70f230a0aee7a1d47a80d8fc8363ff33 Mon Sep 17 00:00:00 2001 From: Allan Shortlidge Date: Wed, 26 Mar 2025 13:53:21 -0700 Subject: [PATCH] Fix error in ScalarEvolution.h when building the Swift compiler. Follow up to https://github.com/swiftlang/llvm-project/pull/10359. --- llvm/include/llvm/Analysis/ScalarEvolution.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/include/llvm/Analysis/ScalarEvolution.h b/llvm/include/llvm/Analysis/ScalarEvolution.h index f8ff9d08b61b1..257660670f717 100644 --- a/llvm/include/llvm/Analysis/ScalarEvolution.h +++ b/llvm/include/llvm/Analysis/ScalarEvolution.h @@ -2492,10 +2492,12 @@ template <> struct DenseMapInfo { return Val.computeHash(); } +#ifndef __swift__ static bool isEqual(const ScalarEvolution::FoldID &LHS, const ScalarEvolution::FoldID &RHS) { return LHS == RHS; } +#endif }; } // end namespace llvm