Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please reset the value of iterator after erase item from a set. #2

Open
xdzhang-xdu opened this issue Oct 9, 2021 · 0 comments
Open

Comments

@xdzhang-xdu
Copy link

You need to:
Insert line "C = node->true_begin(), CE = node->true_end();" after Line 249 in file ControlDependenceGraph.cpp.
Insert line "C = node->false_begin(), CE = node->false_end();" after Line 265 in file ControlDependenceGraph.cpp.

Or, your code will raise segment faults under gcc 7.0+.
Because the erase operation for the set disables the old iterator value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant