File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -837,7 +837,7 @@ SanitizerMask Linux::getSupportedSanitizers() const {
837
837
Res |= SanitizerKind::SafeStack;
838
838
if (IsX86_64 || IsMIPS64 || IsAArch64)
839
839
Res |= SanitizerKind::DataFlow;
840
- if (IsX86_64 || IsMIPS64 || IsAArch64 || IsX86 || IsArmArch)
840
+ if (IsX86_64 || IsMIPS64 || IsAArch64 || IsX86 || IsArmArch || IsPowerPC64 )
841
841
Res |= SanitizerKind::Leak;
842
842
if (IsX86_64 || IsMIPS64 || IsAArch64 || IsPowerPC64)
843
843
Res |= SanitizerKind::Thread;
Original file line number Diff line number Diff line change 286
286
// RUN: %clang -target mips-unknown-linux -fsanitize=leak %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANL-MIPS
287
287
// CHECK-SANL-MIPS: unsupported option '-fsanitize=leak' for target 'mips-unknown-linux'
288
288
289
+ // RUN: %clang -target powerpc64-unknown-linux -fsanitize=leak %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANL-PPC64
290
+ // RUN: %clang -target powerpc64le-unknown-linux -fsanitize=leak %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANL-PPC64
291
+ // CHECK-SANL-PPC64: "-fsanitize=leak"
289
292
// RUN: %clang -target powerpc-unknown-linux -fsanitize=leak %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANL-PPC
290
293
// CHECK-SANL-PPC: unsupported option '-fsanitize=leak' for target 'powerpc-unknown-linux'
291
294
You can’t perform that action at this time.
0 commit comments