[clang] [Sanitizer] remove array-bounds-pseudofn (PR #149430)
Florian Mayer via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 18 10:35:44 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;
----------------
fmayer wrote:
I would expect a non-null check to be cheaper than constructing a string for the Label
https://github.com/llvm/llvm-project/pull/149430
More information about the cfe-commits
mailing list