[PATCH] D113934: [llvm] adapt DWARFExpression.h for 6b9b86db9dd974585a5c71cf2e5231d1e3385f7c

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


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3d1d8c767be5: [llvm] adapt DWARFExpression.h for 6b9b86db9dd974585a5c71cf2e5231d1e3385f7c (authored by krasimir).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113934/new/

https://reviews.llvm.org/D113934

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


Index: llvm/include/llvm/DebugInfo/DWARF/DWARFExpression.h
===================================================================
--- llvm/include/llvm/DebugInfo/DWARF/DWARFExpression.h
+++ llvm/include/llvm/DebugInfo/DWARF/DWARFExpression.h
@@ -107,7 +107,7 @@
     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 @@
       return Op;
     }
 
-    class Operation &operator*() {
+    class Operation &operator*() const {
       return Op;
     }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113934.387375.patch
Type: text/x-patch
Size: 666 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211115/a41c6c06/attachment.bin>


More information about the llvm-commits mailing list