[llvm] [Support] Simplify Object::operator== (NFC) (PR #157311)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 7 10:38:20 PDT 2025
================
@@ -153,6 +153,8 @@ class Object {
LLVM_ABI json::Object *getObject(StringRef K);
LLVM_ABI const json::Array *getArray(StringRef K) const;
LLVM_ABI json::Array *getArray(StringRef K);
+
+ friend bool operator==(const Object &LHS, const Object &RHS);
----------------
kazutakahirata wrote:
@kuhar No, not quite. `operator==` requires complete types on `llvm::json::ObjectKey` and `llvm::json::Value`, both of which are still incomplete as of the `operator==` definition site in the header file.
https://github.com/llvm/llvm-project/pull/157311
More information about the llvm-commits
mailing list