From dfc80801acdc41d453b0d714a035fcb2f8d543af Mon Sep 17 00:00:00 2001 From: Jinsong Ji Date: Wed, 11 Oct 2023 14:45:53 -0700 Subject: [PATCH] [SYCL] Remove unused NativeCPUGlobalAS This will causing warning and become error when building with -Werror. --- llvm/lib/SYCLLowerIR/PrepareSYCLNativeCPU.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/llvm/lib/SYCLLowerIR/PrepareSYCLNativeCPU.cpp b/llvm/lib/SYCLLowerIR/PrepareSYCLNativeCPU.cpp index 26d262f5485a9..dcfd0340447f0 100644 --- a/llvm/lib/SYCLLowerIR/PrepareSYCLNativeCPU.cpp +++ b/llvm/lib/SYCLLowerIR/PrepareSYCLNativeCPU.cpp @@ -261,7 +261,6 @@ static Value *getStateArg(Function *F, llvm::Constant *StateTLS) { return F->getArg(FT->getNumParams() - 1); } -static constexpr unsigned int NativeCPUGlobalAS = 1; static inline bool IsNativeCPUKernel(const Function *F) { return F->getCallingConv() == llvm::CallingConv::SPIR_KERNEL; }