Skip to content

Commit d734118

Browse files
committed
Adjust with LLVM coding style
1 parent 7d4b973 commit d734118

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,8 @@ TraverseCGToFindSPIRKernels(const Function *StartingFunction) {
387387
if (VisitedFunctions.count(ParentF))
388388
continue;
389389

390-
if (ParentF->hasFnAttribute("referenced-indirectly")) {
390+
if (ParentF->hasFnAttribute("referenced-indirectly"))
391391
return {};
392-
}
393392

394393
if (ParentF->getCallingConv() == CallingConv::SPIR_KERNEL)
395394
KernelNames.push_back(ParentF->getName());
@@ -409,9 +408,8 @@ std::vector<StringRef> getKernelNamesUsingAssert(const Module &M) {
409408
auto TraverseResult =
410409
TraverseCGToFindSPIRKernels(DevicelibAssertFailFunction);
411410

412-
if (TraverseResult.hasValue()) {
411+
if (TraverseResult.hasValue())
413412
return std::move(*TraverseResult);
414-
}
415413

416414
// Here we reached "referenced-indirectly", so we need to find all kernels and
417415
// return them.

0 commit comments

Comments
 (0)