From 2d6b1e9b5f3b6c49c0a7732583c984d8dcbc8a9d Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 17 Dec 2020 12:06:28 +0000 Subject: [PATCH] [DebugInfo] Fix MSVC build by adding back necessary reverse_iterator != operator Put back the std::reverse_iterator != operator that was removed in D78938 to fix VS2019 builds --- llvm/include/llvm/DebugInfo/DWARF/DWARFDie.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm/include/llvm/DebugInfo/DWARF/DWARFDie.h b/llvm/include/llvm/DebugInfo/DWARF/DWARFDie.h index 5352dbe4b442..0f76d7f1b31c 100644 --- a/llvm/include/llvm/DebugInfo/DWARF/DWARFDie.h +++ b/llvm/include/llvm/DebugInfo/DWARF/DWARFDie.h @@ -463,6 +463,11 @@ inline bool operator==(const std::reverse_iterator &LHS, return LHS.equals(RHS); } +inline bool operator!=(const std::reverse_iterator &LHS, + const std::reverse_iterator &RHS) { + return !(LHS == RHS); +} + inline std::reverse_iterator DWARFDie::rbegin() const { return llvm::make_reverse_iterator(end()); }