[clang] [clang][test] Set triple explicitly for attr-no-outline.m test (PR #181621)
Alex Bradbury via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 16 01:48:10 PST 2026
https://github.com/asb created https://github.com/llvm/llvm-project/pull/181621
The test fails on targets that have a different LLVM IR lowering (e.g. RISC-V which produces `signext i32` for the return type). Rather than complicate the test with more complex patterns, just set the triple explicitly to x86-64 (as various other generic clang/test/CodeGen* tests do).
Test was introduced by #163666.
This fixes RISC-V CI.
>From 953e209dbba10e8aa39fcbe83cd62fb9daee51d6 Mon Sep 17 00:00:00 2001
From: Alex Bradbury <asb at igalia.com>
Date: Mon, 16 Feb 2026 09:41:20 +0000
Subject: [PATCH] [clang][test] Set triple explicitly for attr-no-outline.m
test
The test fails on targets that have a different LLVM IR lowering (e.g.
RISC-V which produces `signext i32` for the return type). Rather than
complicate the test with more complex patterns, just set the triple
explicitly to x86-64 (as various other generic clang/test/CodeGen* tests
do).
---
clang/test/CodeGenObjC/attr-no-outline.m | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/clang/test/CodeGenObjC/attr-no-outline.m b/clang/test/CodeGenObjC/attr-no-outline.m
index f2f5e790386f1..16d1a9eb867a0 100644
--- a/clang/test/CodeGenObjC/attr-no-outline.m
+++ b/clang/test/CodeGenObjC/attr-no-outline.m
@@ -1,5 +1,5 @@
-// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s --check-prefix=OBJC
-// RUN: %clang_cc1 -emit-llvm -x objective-c++ %s -o - | FileCheck %s --check-prefix=OBJCXX
+// RUN: %clang_cc1 -emit-llvm %s -triple x86_64-unknown-linux-gnu -o - | FileCheck %s --check-prefix=OBJC
+// RUN: %clang_cc1 -emit-llvm -x objective-c++ %s -triple x86_64-unknown-linux-gnu -o - | FileCheck %s --check-prefix=OBJCXX
@interface Test
- (int)method:(int)x;
More information about the cfe-commits
mailing list