llvm-analysis icon indicating copy to clipboard operation
llvm-analysis copied to clipboard

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

Open xdzhang-xdu opened this issue 3 years ago • 0 comments

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.

xdzhang-xdu avatar Oct 09 '21 08:10 xdzhang-xdu