Skip to content

Commit bb54436

Browse files
committed
[clang] enable AddressSanitizer for BPF backend
1 parent 4ed494e commit bb54436

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/Driver/ToolChain.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,6 +1636,8 @@ SanitizerMask ToolChain::getSupportedSanitizers() const {
16361636
Res |= SanitizerKind::ShadowCallStack;
16371637
if (getTriple().isAArch64(64))
16381638
Res |= SanitizerKind::MemTag;
1639+
if (getTriple().isBPF())
1640+
Res |= SanitizerKind::KernelAddress;
16391641
return Res;
16401642
}
16411643

0 commit comments

Comments
 (0)