https://github.com/wenju-he updated 
https://github.com/llvm/llvm-project/pull/182421

>From a60a30709c26f468ffe3d7bbfb48ccb43bd4d922 Mon Sep 17 00:00:00 2001
From: Wenju He <[email protected]>
Date: Fri, 20 Feb 2026 03:38:29 +0100
Subject: [PATCH] [NFC][OpenCL] Fix test function-scope-local-return.cl

Add `-triple spir64-unknown-unknown` to fix error on arm and aarch64:
unsupported OpenCL extension '__cl_clang_function_scope_local_variables'
---
 clang/test/SemaOpenCL/function-scope-local-return.cl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/test/SemaOpenCL/function-scope-local-return.cl 
b/clang/test/SemaOpenCL/function-scope-local-return.cl
index 99dabfdc5827a..d9025e170f923 100644
--- a/clang/test/SemaOpenCL/function-scope-local-return.cl
+++ b/clang/test/SemaOpenCL/function-scope-local-return.cl
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only -cl-std=CL3.0
+// RUN: %clang_cc1 -triple spir64-unknown-unknown -verify -pedantic 
-fsyntax-only -cl-std=CL3.0 %s
 
 // Check that returning a pointer to a local address space variable does not
 // trigger -Wreturn-stack-address.

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to