| Index: src/IceTargetLowering.h
|
| diff --git a/src/IceTargetLowering.h b/src/IceTargetLowering.h
|
| index 88de3d5321bf275c8827b44bdadc1805f2cbdb87..dcba5ce81618e78d23d823297fda076dd4245320 100644
|
| --- a/src/IceTargetLowering.h
|
| +++ b/src/IceTargetLowering.h
|
| @@ -79,13 +79,13 @@ public:
|
| Inst *getNextInst() const {
|
| if (Next == End)
|
| return nullptr;
|
| - return Next;
|
| + return iteratorToInst(Next);
|
| }
|
| Inst *getNextInst(InstList::iterator &Iter) const {
|
| advanceForward(Iter);
|
| if (Iter == End)
|
| return nullptr;
|
| - return Iter;
|
| + return iteratorToInst(Iter);
|
| }
|
| CfgNode *getNode() const { return Node; }
|
| bool atEnd() const { return Cur == End; }
|
|
|