[NFC][sanitizer] Avoid O(N^2) algorithm
Usually root_regions size is small so unlikey this change will provide a noticable difference. However it's easy to make sure that even with large number of root_regions it works reasonably fast. Differential Revision: https://reviews.llvm.org/D151781
Loading
Please sign in to comment