[clang] 417a49e - [msan] Hotfix clang/test/CodeGen/sanitize-memory-disable.c

Alexander Potapenko via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 20 07:00:33 PDT 2021


Author: Alexander Potapenko
Date: 2021-08-20T16:00:25+02:00
New Revision: 417a49e78e730c964c60840110455c29fb562ee0

URL: https://github.com/llvm/llvm-project/commit/417a49e78e730c964c60840110455c29fb562ee0
DIFF: https://github.com/llvm/llvm-project/commit/417a49e78e730c964c60840110455c29fb562ee0.diff

LOG: [msan] Hotfix clang/test/CodeGen/sanitize-memory-disable.c

Because KMSAN is not supported on many architectures, explicitly build
the test with -target x86_64-linux-gnu.

Fixes the 'unsupported architecture' and 'unsupported operating system'
errors reported by the clang-armv7-quick (https://lab.llvm.org/buildbot#builders/171/builds/2595)
and llvm-clang-x86_64-sie-ubuntu-fast (https://lab.llvm.org/buildbot#builders/139/builds/9079)
builders.

Differential Revision: https://reviews.llvm.org/D108465

Added: 
    

Modified: 
    clang/test/CodeGen/sanitize-memory-disable.c

Removed: 
    


################################################################################
diff  --git a/clang/test/CodeGen/sanitize-memory-disable.c b/clang/test/CodeGen/sanitize-memory-disable.c
index 5bf4dc9c185e..da3593ac973b 100644
--- a/clang/test/CodeGen/sanitize-memory-disable.c
+++ b/clang/test/CodeGen/sanitize-memory-disable.c
@@ -1,6 +1,6 @@
-// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck -check-prefixes CHECK,WITHOUT %s
-// RUN: %clang_cc1 -emit-llvm -o - %s -fsanitize=memory | FileCheck -check-prefixes CHECK,MSAN %s
-// RUN: %clang_cc1 -emit-llvm -o - %s -fsanitize=kernel-memory | FileCheck -check-prefixes CHECK,KMSAN %s
+// RUN: %clang -target x86_64-linux-gnu -S -emit-llvm -o - %s | FileCheck -check-prefixes CHECK,WITHOUT %s
+// RUN: %clang -target x86_64-linux-gnu -S -emit-llvm -o - %s -fsanitize=memory | FileCheck -check-prefixes CHECK,MSAN %s
+// RUN: %clang -target x86_64-linux-gnu -S -emit-llvm -o - %s -fsanitize=kernel-memory | FileCheck -check-prefixes CHECK,KMSAN %s
 
 // Instrumented function.
 // MSan uses memset(addr, -1, size) to poison allocas and stores shadow of the return value in


        


More information about the cfe-commits mailing list