forked from OSchip/llvm-project
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:
parent
233def40f7
commit
b23ba295bd
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue