Skip to content

Commit 07ee870

Browse files
[AST] Fix a warning
This patch fixes: clang/lib/AST/ASTContext.cpp:14432:8: error: unused variable 'IT' [-Werror,-Wunused-variable]
1 parent 6d6287a commit 07ee870

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/AST/ASTContext.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14433,6 +14433,7 @@ void ASTContext::registerSYCLEntryPointFunction(FunctionDecl *FD) {
1443314433
assert((IT == SYCLKernels.end() ||
1443414434
declaresSameEntity(FD, IT->second.getKernelEntryPointDecl())) &&
1443514435
"SYCL kernel name conflict");
14436+
(void)IT;
1443614437
SYCLKernels.insert(
1443714438
std::make_pair(KernelNameType, BuildSYCLKernelInfo(KernelNameType, FD)));
1443814439
}

0 commit comments

Comments
 (0)