[PATCH] D108465: [msan] Hotfix clang/test/CodeGen/sanitize-memory-disable.c
Alexander Potapenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 20 06:53:04 PDT 2021
glider created this revision.
glider added reviewers: eugenis, melver.
Herald added a subscriber: pengfei.
glider requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Because KMSAN is not supported on many architectures, explicitly build
the test with -target x86_64-linux-gnu.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D108465
Files:
clang/test/CodeGen/sanitize-memory-disable.c
Index: clang/test/CodeGen/sanitize-memory-disable.c
===================================================================
--- clang/test/CodeGen/sanitize-memory-disable.c
+++ 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108465.367781.patch
Type: text/x-patch
Size: 1011 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210820/700bdfd9/attachment-0001.bin>
More information about the cfe-commits
mailing list