Fix return type (#3435)
diff --git a/source/opt/instruction_list.h b/source/opt/instruction_list.h
index ea1cc7c..417cbd7 100644
--- a/source/opt/instruction_list.h
+++ b/source/opt/instruction_list.h
@@ -61,6 +61,16 @@
: utils::IntrusiveList<Instruction>::iterator(i) {}
iterator(Instruction* i) : utils::IntrusiveList<Instruction>::iterator(i) {}
+ iterator& operator++() {
+ utils::IntrusiveList<Instruction>::iterator::operator++();
+ return *this;
+ }
+
+ iterator& operator--() {
+ utils::IntrusiveList<Instruction>::iterator::operator--();
+ return *this;
+ }
+
// DEPRECATED: Please use MoveBefore with an InstructionList instead.
//
// Moves the nodes in |list| to the list that |this| points to. The