Skip to content

Commit d860652

Browse files
committed
minor changes
1 parent edee7c9 commit d860652

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

llvm/tools/sycl-post-link/sycl-post-link.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -530,16 +530,13 @@ static string_vector saveDeviceImageProperty(
530530

531531
{
532532
Module *M = ResultModules[I].get();
533-
std::vector<Function *> SyclKernels;
534533
for (auto &F : M->functions()) {
535534
// TODO: handle SYCL_EXTERNAL functions for dynamic linkage.
536535
// TODO: handle function pointers.
537536
if (F.getCallingConv() == CallingConv::SPIR_KERNEL) {
538-
if (hasAssertInFunctionCallGraph(&F)) {
539-
SyclKernels.push_back(&F);
537+
if (hasAssertInFunctionCallGraph(&F))
540538
PropSet[llvm::util::PropertySetRegistry::SYCL_ASSERT_USED].insert(
541539
{F.getName(), true});
542-
}
543540
}
544541
}
545542
}

0 commit comments

Comments
 (0)