From 3d1d8c767be5537eb5510ee0522e2f3475fe7c04 Mon Sep 17 00:00:00 2001 From: Krasimir Georgiev Date: Mon, 15 Nov 2021 21:40:37 +0100 Subject: [PATCH] [llvm] adapt DWARFExpression.h for 6b9b86db9dd974585a5c71cf2e5231d1e3385f7c No functional changes intended. Updated the iterator class for https://github.com/llvm/llvm-project/commit/6b9b86db9dd974585a5c71cf2e5231d1e3385f7c. Differential Revision: https://reviews.llvm.org/D113934 --- llvm/include/llvm/DebugInfo/DWARF/DWARFExpression.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/DebugInfo/DWARF/DWARFExpression.h b/llvm/include/llvm/DebugInfo/DWARF/DWARFExpression.h index 1bb4a311be18..dc575265d816 100644 --- a/llvm/include/llvm/DebugInfo/DWARF/DWARFExpression.h +++ b/llvm/include/llvm/DebugInfo/DWARF/DWARFExpression.h @@ -107,7 +107,7 @@ public: friend class DWARFExpression; const DWARFExpression *Expr; uint64_t Offset; - Operation Op; + mutable Operation Op; iterator(const DWARFExpression *Expr, uint64_t Offset) : Expr(Expr), Offset(Offset) { Op.Error = @@ -124,7 +124,7 @@ public: return Op; } - class Operation &operator*() { + class Operation &operator*() const { return Op; }