[llvm] adapt DWARFExpression.h for 6b9b86db9d

No functional changes intended.

Updated the iterator class for 6b9b86db9d.

Differential Revision: https://reviews.llvm.org/D113934
This commit is contained in:
Krasimir Georgiev 2021-11-15 21:40:37 +01:00
parent 8f95e915cd
commit 3d1d8c767b
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}