Skip to content

Commit e3e0f69

Browse files
authored
[NFC][clang-sycl-linker] Avoid ambiguous call to CallingConv (#161682)
both llvm and clang namespace have CallingConv. Add namespace prefix to avoid ambiguous call .
1 parent f646d76 commit e3e0f69

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,9 +462,10 @@ static Error runAOTCompile(StringRef InputFile, StringRef OutputFile,
462462

463463
// TODO: Consider using LLVM-IR metadata to identify globals of interest
464464
bool isKernel(const Function &F) {
465-
const CallingConv::ID CC = F.getCallingConv();
466-
return CC == CallingConv::SPIR_KERNEL || CC == CallingConv::AMDGPU_KERNEL ||
467-
CC == CallingConv::PTX_Kernel;
465+
const llvm::CallingConv::ID CC = F.getCallingConv();
466+
return CC == llvm::CallingConv::SPIR_KERNEL ||
467+
CC == llvm::CallingConv::AMDGPU_KERNEL ||
468+
CC == llvm::CallingConv::PTX_Kernel;
468469
}
469470

470471
/// Performs the following steps:

0 commit comments

Comments
 (0)