Commit cefedf2
authored
🐛 do not invalidate iterator in block collection (#808)
## Description
This fixes a small bug observed as part of #803, which only surfaced on
Windows in Debug mode when compiling using Clang 🤯
Part of the block collection code in the circuit optimizer would
invalidate an iterator due to an update of the respective container
being iterated over within the loop.
## Checklist:
<!---
This checklist serves as a reminder of a couple of things that ensure
your pull request will be merged swiftly.
-->
- [x] The pull request only contains commits that are related to it.
- [x] I have added appropriate tests and documentation.
- [x] I have made sure that all CI jobs on GitHub pass.
- [x] The pull request introduces no new warnings and follows the
project's style guidelines.
Signed-off-by: Lukas Burgholzer <[email protected]>1 parent ed00fb4 commit cefedf2
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1414 | 1414 | | |
1415 | 1415 | | |
1416 | 1416 | | |
1417 | | - | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
1418 | 1421 | | |
1419 | 1422 | | |
1420 | 1423 | | |
| |||
0 commit comments