From dcbb0f8ade7c493830177e716208670eecb59f65 Mon Sep 17 00:00:00 2001 From: Allan Shortlidge Date: Wed, 26 Mar 2025 13:53:21 -0700 Subject: [PATCH] Suppress warnings for Swift C++ interop by hiding an operator declaration. Solves the same kind of issue as https://github.com/swiftlang/llvm-project/pull/9590. --- 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 f729b07076d29..f8ff9d08b61b1 100644 --- a/llvm/include/llvm/Analysis/ScalarEvolution.h +++ b/llvm/include/llvm/Analysis/ScalarEvolution.h @@ -1388,9 +1388,11 @@ class ScalarEvolution { reinterpret_cast(Ty))); } +#ifndef __swift__ bool operator==(const FoldID &RHS) const { return std::tie(Op, Ty, C) == std::tie(RHS.Op, RHS.Ty, RHS.C); } +#endif }; private: