[clang] [Sanitizer] remove array-bounds-pseudofn (PR #149430)
Thurston Dang via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 18 11:08:19 PDT 2025
================
@@ -6482,7 +6475,11 @@ llvm::DILocation *CodeGenFunction::SanitizerAnnotateDebugInfo(
SanitizerHandler Handler) {
llvm::DILocation *CheckDebugLoc = Builder.getCurrentDebugLocation();
auto *DI = getDebugInfo();
- if (!DI)
+ if (!DI || !CheckDebugLoc)
+ return CheckDebugLoc;
----------------
thurstond wrote:
The performance tradeoff depends on how often the check fails (if CheckDebugLoc is rarely null, then adding the check here may slow down codegen overall).
https://github.com/llvm/llvm-project/pull/149430
More information about the cfe-commits
mailing list