[compiler-rt] Replace bool operator== for VersionType in sanitizer_mac.h (PR #135068)
Jonas Devlieghere via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 9 21:07:25 PDT 2025
JDevlieghere wrote:
This broke GreenDragon:
https://ci.swift.org/view/all/job/llvm.org/view/LLDB/job/as-lldb-cmake/23697/console
```
In file included from /Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/llvm-project/compiler-rt/lib/xray/xray_profile_collector.cpp:14:
In file included from /Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/llvm-project/compiler-rt/lib/xray/xray_profile_collector.h:20:
In file included from /Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/llvm-project/compiler-rt/lib/xray/xray_function_call_trie.h:20:
/Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/llvm-project/compiler-rt/lib/xray/xray_segmented_array.h:146:18: error: use of overloaded operator '==' is ambiguous (with operand types 'const Iterator<__xray::FunctionCallTrie::Node>' and 'const Iterator<__xray::FunctionCallTrie::Node>')
146 | return !(L == R);
| ~ ^ ~
/Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/llvm-project/compiler-rt/lib/xray/xray_segmented_array.h:338:18: note: in instantiation of function template specialization '__xray::operator!=<__xray::FunctionCallTrie::Node, __xray::FunctionCallTrie::Node>' requested here
338 | for (auto &E : *this)
| ^
/Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/llvm-project/compiler-rt/lib/xray/xray_function_call_trie.h:325:12: note: in instantiation of member function '__xray::Array<__xray::FunctionCallTrie::Node>::~Array' requested here
325 | explicit FunctionCallTrie(const Allocators &A) XRAY_NEVER_INSTRUMENT
| ^
/Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/llvm-project/compiler-rt/lib/xray/../sanitizer_common/sanitizer_mac.h:48:6: note: candidate function [with VersionType = __xray::Array<__xray::FunctionCallTrie::Node>::Iterator<__xray::FunctionCallTrie::Node>]
48 | bool operator==(const VersionType &self, const VersionType &other) {
| ^
...
```
https://github.com/llvm/llvm-project/pull/135068
More information about the llvm-commits
mailing list