[clang] [sanitizer] Add plumbing for -fsanitize-annotate-debug-info and partly replace '-mllvm -array-bounds-pseudofn' (PR #138577)
Florian Mayer via cfe-commits
cfe-commits at lists.llvm.org
Tue May 6 12:59:01 PDT 2025
================
@@ -1228,7 +1228,10 @@ void CodeGenFunction::EmitBoundsCheckImpl(const Expr *E, llvm::Value *Bound,
SanitizerScope SanScope(this);
llvm::DILocation *CheckDI = Builder.getCurrentDebugLocation();
- if (ClArrayBoundsPseudoFn && CheckDI) {
+ if ((ClArrayBoundsPseudoFn ||
----------------
fmayer wrote:
I would drop the Current then for symmety
https://github.com/llvm/llvm-project/pull/138577
More information about the cfe-commits
mailing list