Hi!
When we run sanitized application in ASan recovery mode, sometimes we have lots of identical reports for the same error (e.g. error in hot loop). It would be nice to filter out such reports.
We can use the same approach as for UBSan with disabling source locations to achieve this goal.
This is the LLVM part of suppression functionality. Here, we just create SourceLocation descriptor for each memory access and provide a pointer to it for asan_report*_noabort functions.
There aren't any changes in default halt_on_error mode.
Is it possible move call out of if-else and set argument ArrayRefs there instead? Same for other places below.