diff --git a/llvm/include/llvm/BinaryFormat/MsgPackDocument.h b/llvm/include/llvm/BinaryFormat/MsgPackDocument.h --- a/llvm/include/llvm/BinaryFormat/MsgPackDocument.h +++ b/llvm/include/llvm/BinaryFormat/MsgPackDocument.h @@ -181,6 +181,11 @@ return !(Lhs < Rhs) && !(Rhs < Lhs); } + /// Inequality operator + friend bool operator!=(const DocNode &Lhs, const DocNode &Rhs) { + return !(Lhs == Rhs); + } + /// Convert this node to a string, assuming it is scalar. std::string toString() const;