From 0b509f2d1a1944da41bfc376f39bbc17690f8ed9 Mon Sep 17 00:00:00 2001 From: Kevin Athey Date: Tue, 18 Jan 2022 16:04:05 -0800 Subject: [PATCH] [MSAN] removing redundant tests and parameters (NFC) Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D117622 --- clang/test/CodeGen/attr-noundef.cpp | 1 - clang/test/CodeGen/indirect-noundef.cpp | 1 - compiler-rt/test/msan/noundef_analysis.cpp | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/clang/test/CodeGen/attr-noundef.cpp b/clang/test/CodeGen/attr-noundef.cpp index c121a8604d23f..f0570a5390a26 100644 --- a/clang/test/CodeGen/attr-noundef.cpp +++ b/clang/test/CodeGen/attr-noundef.cpp @@ -5,7 +5,6 @@ // no-sanitize-memory-param-retval does NOT conflict with enable-noundef-analysis // RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-gnu-linux -x c++ -S -emit-llvm -fno-sanitize-memory-param-retval %s -o - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-INTEL -// RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-gnu-linux -x c++ -S -emit-llvm -fno-sanitize-memory-param-retval %s -o - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-INTEL //************ Passing structs by value // TODO: No structs may currently be marked noundef diff --git a/clang/test/CodeGen/indirect-noundef.cpp b/clang/test/CodeGen/indirect-noundef.cpp index 0220bd15b5da4..0f63daac044c3 100644 --- a/clang/test/CodeGen/indirect-noundef.cpp +++ b/clang/test/CodeGen/indirect-noundef.cpp @@ -3,7 +3,6 @@ // no-sanitize-memory-param-retval does NOT conflict with enable-noundef-analysis // RUN: %clang_cc1 -no-opaque-pointers -x c++ -triple x86_64-unknown-unknown -O0 -emit-llvm -fno-sanitize-memory-param-retval -o - %s | FileCheck %s -// RUN: %clang_cc1 -no-opaque-pointers -x c++ -triple x86_64-unknown-unknown -O0 -emit-llvm -fno-sanitize-memory-param-retval -o - %s | FileCheck %s union u1 { int val; diff --git a/compiler-rt/test/msan/noundef_analysis.cpp b/compiler-rt/test/msan/noundef_analysis.cpp index a45f791ae53ad..3de4d9955be05 100644 --- a/compiler-rt/test/msan/noundef_analysis.cpp +++ b/compiler-rt/test/msan/noundef_analysis.cpp @@ -2,7 +2,7 @@ // RUN: FileCheck %s --check-prefix=MISSED --allow-empty < %t.out // RUN: %clangxx_msan %s -mllvm -msan-eager-checks=1 -o %t && not %run %t >%t.out 2>&1 // RUN: FileCheck %s < %t.out -// RUN: %clangxx_msan %s -disable-noundef-analysis -s -fsanitize-memory-param-retval -o %t && not %run %t >%t.out 2>&1 +// RUN: %clangxx_msan %s -disable-noundef-analysis -fsanitize-memory-param-retval -o %t && not %run %t >%t.out 2>&1 // RUN: FileCheck %s < %t.out struct SimpleStruct {