This flag was previously renamed `enable_noundef_analysis` to `disable-noundef-analysis,` which is not a conventional name. (Driver and CC1's boolean options are using [no-] prefix) As discussed at https://reviews.llvm.org/D105169, this patch reverts its name to `[no-]enable_noundef_analysis` and enables noundef-analysis as default. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D119998
19 lines
1.1 KiB
C
19 lines
1.1 KiB
C
// RUN: %clang_cc1 -triple x86_64-linux-gnu -S -emit-llvm -fsanitize=memory -no-enable-noundef-analysis -o - %s | \
|
|
// RUN: FileCheck %s --check-prefix=CLEAN
|
|
// RUN: %clang_cc1 -triple x86_64-linux-gnu -S -emit-llvm -fsanitize=memory -o - %s | \
|
|
// RUN: FileCheck %s --check-prefixes=NOUNDEF,NOUNDEF_ONLY
|
|
// RUN: %clang_cc1 -triple x86_64-linux-gnu -S -emit-llvm -fsanitize=memory -mllvm -msan-eager-checks -o - %s | \
|
|
// RUN: FileCheck %s --check-prefixes=NOUNDEF,EAGER
|
|
// RUN: %clang_cc1 -triple x86_64-linux-gnu -S -emit-llvm -fsanitize=memory -no-enable-noundef-analysis -fsanitize-memory-param-retval -o - %s | \
|
|
// RUN: FileCheck %s --check-prefixes=CLEAN
|
|
// RUN: %clang_cc1 -triple x86_64-linux-gnu -S -emit-llvm -fsanitize=memory -fsanitize-memory-param-retval -o - %s | \
|
|
// RUN: FileCheck %s --check-prefixes=NOUNDEF,EAGER
|
|
|
|
void bar(int x) {
|
|
}
|
|
|
|
// CLEAN: define dso_local void @bar(i32 %x) #0 {
|
|
// NOUNDEF: define dso_local void @bar(i32 noundef %x) #0 {
|
|
// CLEAN: @__msan_param_tls
|
|
// NOUNDEF_ONLY: @__msan_param_tls
|
|
// EAGER-NOT: @__msan_param_tls
|