Skip to content

Commit c24c995

Browse files
committed
Fix incorrect SILSuccessorIterator operator++ that broke master-next after llvm r294339.
This operator++ is a post-increment operator but it was implemented with pre-increment behavior. This bug was exposed by the changes in llvm r294339 and caused the master-next branch to stop building.
1 parent 49d134f commit c24c995

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/SIL/SILSuccessor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class SILSuccessorIterator {
8888

8989
SILSuccessorIterator operator++(int) {
9090
SILSuccessorIterator copy = *this;
91-
++copy;
91+
++*this;
9292
return copy;
9393
}
9494

0 commit comments

Comments
 (0)