[clang] [Sanitizer] remove array-bounds-pseudofn (PR #149430)

2025-07-18 Thread Florian Mayer via cfe-commits
https://github.com/fmayer closed https://github.com/llvm/llvm-project/pull/149430 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sanitizer] remove array-bounds-pseudofn (PR #149430)

2025-07-18 Thread Thurston Dang via cfe-commits
https://github.com/thurstond approved this pull request. https://github.com/llvm/llvm-project/pull/149430 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sanitizer] remove array-bounds-pseudofn (PR #149430)

2025-07-18 Thread Florian Mayer via cfe-commits
@@ -6482,7 +6475,11 @@ llvm::DILocation *CodeGenFunction::SanitizerAnnotateDebugInfo( SanitizerHandler Handler) { llvm::DILocation *CheckDebugLoc = Builder.getCurrentDebugLocation(); auto *DI = getDebugInfo(); - if (!DI) + if (!DI || !CheckDebugLoc) +return Check

[clang] [Sanitizer] remove array-bounds-pseudofn (PR #149430)

2025-07-18 Thread Thurston Dang via cfe-commits
@@ -6482,7 +6475,11 @@ llvm::DILocation *CodeGenFunction::SanitizerAnnotateDebugInfo( SanitizerHandler Handler) { llvm::DILocation *CheckDebugLoc = Builder.getCurrentDebugLocation(); auto *DI = getDebugInfo(); - if (!DI) + if (!DI || !CheckDebugLoc) +return Check

[clang] [Sanitizer] remove array-bounds-pseudofn (PR #149430)

2025-07-18 Thread Thurston Dang via cfe-commits
@@ -6491,14 +6488,8 @@ llvm::DILocation *CodeGenFunction::SanitizerAnnotateDebugInfo( else Label = SanitizerHandlerToCheckLabel(Handler); - for (auto Ord : Ordinals) { -// TODO: deprecate ClArrayBoundsPseudoFn -if (((ClArrayBoundsPseudoFn && Ord == SanitizerKin

[clang] [Sanitizer] remove array-bounds-pseudofn (PR #149430)

2025-07-18 Thread Thurston Dang via cfe-commits
https://github.com/thurstond approved this pull request. https://github.com/llvm/llvm-project/pull/149430 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sanitizer] remove array-bounds-pseudofn (PR #149430)

2025-07-18 Thread Florian Mayer via cfe-commits
@@ -6491,14 +6488,8 @@ llvm::DILocation *CodeGenFunction::SanitizerAnnotateDebugInfo( else Label = SanitizerHandlerToCheckLabel(Handler); - for (auto Ord : Ordinals) { -// TODO: deprecate ClArrayBoundsPseudoFn -if (((ClArrayBoundsPseudoFn && Ord == SanitizerKin

[clang] [Sanitizer] remove array-bounds-pseudofn (PR #149430)

2025-07-18 Thread Florian Mayer via cfe-commits
@@ -6482,7 +6475,11 @@ llvm::DILocation *CodeGenFunction::SanitizerAnnotateDebugInfo( SanitizerHandler Handler) { llvm::DILocation *CheckDebugLoc = Builder.getCurrentDebugLocation(); auto *DI = getDebugInfo(); - if (!DI) + if (!DI || !CheckDebugLoc) +return Check