[llvm-branch-commits] [llvm] 2d6b1e9 - [DebugInfo] Fix MSVC build by adding back necessary reverse_iterator != operator

Simon Pilgrim via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Dec 17 04:11:44 PST 2020


Author: Simon Pilgrim
Date: 2020-12-17T12:06:44Z
New Revision: 2d6b1e9b5f3b6c49c0a7732583c984d8dcbc8a9d

URL: https://github.com/llvm/llvm-project/commit/2d6b1e9b5f3b6c49c0a7732583c984d8dcbc8a9d
DIFF: https://github.com/llvm/llvm-project/commit/2d6b1e9b5f3b6c49c0a7732583c984d8dcbc8a9d.diff

LOG: [DebugInfo] Fix MSVC build by adding back necessary reverse_iterator != operator

Put back the std::reverse_iterator<DWARFDie::iterator> != operator that was removed in D78938 to fix VS2019 builds

Added: 
    

Modified: 
    llvm/include/llvm/DebugInfo/DWARF/DWARFDie.h

Removed: 
    


################################################################################
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<DWARFDie::iterator> &LHS,
   return LHS.equals(RHS);
 }
 
+inline bool operator!=(const std::reverse_iterator<DWARFDie::iterator> &LHS,
+                       const std::reverse_iterator<DWARFDie::iterator> &RHS) {
+  return !(LHS == RHS);
+}
+
 inline std::reverse_iterator<DWARFDie::iterator> DWARFDie::rbegin() const {
   return llvm::make_reverse_iterator(end());
 }


        


More information about the llvm-branch-commits mailing list