Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SV] Fix heap-use-after-free in recent SVExtractTestCode change.
We iterate over the instances of a module in the instance graph, and during that iteration, erase some of the uses. This causes a heap-use-after-free that ASAN detects. A simple fix is to use llvm::make_early_inc_range, which allows us to safely iterate over a range while we erase things from the range. Fixes #4081.
- Loading branch information