https://github.com/jsji created https://github.com/llvm/llvm-project/pull/161682
both llvm and clang namespace have CallingConv. Add namespace prefix to avoid ambiguous call . >From 1f54dd63443455ba80c0828112ee513fc29b1614 Mon Sep 17 00:00:00 2001 From: Jinsong Ji <[email protected]> Date: Thu, 2 Oct 2025 08:03:46 -0700 Subject: [PATCH] [NFC][clang-sycl-linker] Avoid ambiguous call to CallingConv both llvm and clang namespace have CallingConv. Add namespace prefix to avoid ambiguous call . --- clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp b/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp index 594c79a28047b..49d949d0fb4d6 100644 --- a/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp +++ b/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp @@ -462,9 +462,9 @@ static Error runAOTCompile(StringRef InputFile, StringRef OutputFile, // TODO: Consider using LLVM-IR metadata to identify globals of interest bool isKernel(const Function &F) { - const CallingConv::ID CC = F.getCallingConv(); - return CC == CallingConv::SPIR_KERNEL || CC == CallingConv::AMDGPU_KERNEL || - CC == CallingConv::PTX_Kernel; + const llvm::CallingConv::ID CC = F.getCallingConv(); + return CC == llvm::CallingConv::SPIR_KERNEL || CC == llvm::CallingConv::AMDGPU_KERNEL || + CC == llvm::CallingConv::PTX_Kernel; } /// Performs the following steps: _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
