[clang] [llvm] Modify BoundsSan to improve debuggability (PR #65972)

Oskar Wirga via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 27 13:12:12 PST 2024


oskarwirga wrote:

> @oskarwirga I'd like to use this feature but without counter, preserving ubsan IDs
> 
> Also I think in the current the counter has limited use: in optimized code, after inlining, it will have a lot of same ids, like 0, 1 from different functions.
> 
> So I propose to undo that part of the patch. WDYT?

So long as the debuggability is preserved so that it is possible to attribute crashes to specific lines of code, I am fine! Do you have an alternate solution? 

https://github.com/llvm/llvm-project/pull/65972


More information about the cfe-commits mailing list