llvm-project
d1c341ca - [SanitizerCoverage] Give calls inserted into funclets their funclet bundle (#226762)

Commit
7 hours ago
[SanitizerCoverage] Give calls inserted into funclets their funclet bundle (#226762) With scoped EH (MSVC C++), `WinEHPrepare` requires calls inside a catch or cleanup funclet to carry a `"funclet"` operand bundle naming the funclet's pad. Because `SanitizerCoverage` inserted its runtime calls without one, `WinEHPrepare` treated them as implausible and replaced the call and the rest of its basic block with `unreachable`, dropping catch handler bodies that contain comparisons or indirect calls under `-fsanitize=fuzzer`. Color the function's EH funclets after instrumentation and attach the enclosing pad's `"funclet"` bundle to inserted runtime calls, similar to `AddressSanitizer`. Fixes #212404 Assisted-by: Claude Code (Claude Opus 5.5)
Author
Parents
Loading