[llvm] 3d1d8c7 - [llvm] adapt DWARFExpression.h for 6b9b86db9dd974585a5c71cf2e5231d1e3385f7c

Krasimir Georgiev via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 15 13:09:12 PST 2021


Author: Krasimir Georgiev
Date: 2021-11-15T22:08:39+01:00
New Revision: 3d1d8c767be5537eb5510ee0522e2f3475fe7c04

URL: https://github.com/llvm/llvm-project/commit/3d1d8c767be5537eb5510ee0522e2f3475fe7c04
DIFF: https://github.com/llvm/llvm-project/commit/3d1d8c767be5537eb5510ee0522e2f3475fe7c04.diff

LOG: [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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/DebugInfo/DWARF/DWARFExpression.h b/llvm/include/llvm/DebugInfo/DWARF/DWARFExpression.h
index 1bb4a311be189..dc575265d8169 100644
--- a/llvm/include/llvm/DebugInfo/DWARF/DWARFExpression.h
+++ b/llvm/include/llvm/DebugInfo/DWARF/DWARFExpression.h
@@ -107,7 +107,7 @@ class DWARFExpression {
     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 @@ class DWARFExpression {
       return Op;
     }
 
-    class Operation &operator*() {
+    class Operation &operator*() const {
       return Op;
     }
 


        


More information about the llvm-commits mailing list