[clang] Add REQUIRES: x86-registered-target to test added in #173311. (PR #178271)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 27 10:49:57 PST 2026
https://github.com/dyung updated https://github.com/llvm/llvm-project/pull/178271
>From 94f929f9f547e28e8c885e448b7281dbe5e3004f Mon Sep 17 00:00:00 2001
From: Douglas Yung <douglas.yung at sony.com>
Date: Tue, 27 Jan 2026 10:15:27 -0800
Subject: [PATCH 1/2] Add REQUIRES: x86-registered-target to test added in
#173311.
Should fix failure on buildbot https://lab.llvm.org/buildbot/#/builders/190/builds/35171
---
clang/test/CodeGen/stack-protector-vars.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/clang/test/CodeGen/stack-protector-vars.cpp b/clang/test/CodeGen/stack-protector-vars.cpp
index d11cd822cd871..a8869ef9a9712 100644
--- a/clang/test/CodeGen/stack-protector-vars.cpp
+++ b/clang/test/CodeGen/stack-protector-vars.cpp
@@ -3,6 +3,8 @@
// RUN: %clang -target x86_64-apple-darwin -emit-llvm -S -o - %s -fstack-protector-all | FileCheck %s
// RUN: %clang -target x86_64-apple-darwin -Xclang -verify -fstack-protector-all %s -o %t -c
+// REQUIRES: x86-reigstered-target
+
typedef __SIZE_TYPE__ size_t;
int printf(const char * _Format, ...);
>From e12428fac44d6b2376c0f080c9e7297c93c4a352 Mon Sep 17 00:00:00 2001
From: Douglas Yung <douglas.yung at sony.com>
Date: Tue, 27 Jan 2026 10:48:39 -0800
Subject: [PATCH 2/2] Add -emit-llvm instead of restricting the test to x86
only.
---
clang/test/CodeGen/stack-protector-vars.cpp | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/clang/test/CodeGen/stack-protector-vars.cpp b/clang/test/CodeGen/stack-protector-vars.cpp
index a8869ef9a9712..88f1ce4aa5f97 100644
--- a/clang/test/CodeGen/stack-protector-vars.cpp
+++ b/clang/test/CodeGen/stack-protector-vars.cpp
@@ -1,9 +1,7 @@
// RUN: %clang -target x86_64-apple-darwin -emit-llvm -S -o - %s | FileCheck %s
// RUN: %clang -target x86_64-apple-darwin -emit-llvm -S -o - %s -fstack-protector | FileCheck %s
// RUN: %clang -target x86_64-apple-darwin -emit-llvm -S -o - %s -fstack-protector-all | FileCheck %s
-// RUN: %clang -target x86_64-apple-darwin -Xclang -verify -fstack-protector-all %s -o %t -c
-
-// REQUIRES: x86-reigstered-target
+// RUN: %clang -target x86_64-apple-darwin -emit-llvm -Xclang -verify -fstack-protector-all %s -o %t -c
typedef __SIZE_TYPE__ size_t;
More information about the cfe-commits
mailing list