DebugInfo: Make DWARFExpression::iterator::operator++ return itself

Looks like an accident that `operator++` was returning `Operator&`
instead of `iterator&`. Update to match standard iterator behaviour.
This commit is contained in:
Duncan P. N. Exon Smith 2021-11-15 16:42:48 -08:00
parent 233def40f7
commit b23ba295bd
1 changed files with 2 additions and 2 deletions

View File

@ -116,12 +116,12 @@ public:
}
public:
class Operation &operator++() {
iterator &operator++() {
Offset = Op.isError() ? Expr->Data.getData().size() : Op.EndOffset;
Op.Error =
Offset >= Expr->Data.getData().size() ||
!Op.extract(Expr->Data, Expr->AddressSize, Offset, Expr->Format);
return Op;
return *this;
}
class Operation &operator*() const {