[PATCH] D113934: [llvm] adapt DWARFExpression.h for 6b9b86db9dd974585a5c71cf2e5231d1e3385f7c
Krasimir Georgiev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 15 12:42:50 PST 2021
krasimir created this revision.
krasimir requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
No functional changes intended.
Updated the iterator class for https://github.com/llvm/llvm-project/commit/6b9b86db9dd974585a5c71cf2e5231d1e3385f7c.
Repository:
rG LLVM Github Monorepo
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.387363.patch
Type: text/x-patch
Size: 666 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211115/41dac7dd/attachment.bin>
More information about the llvm-commits
mailing list