File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
llvm/tools/sycl-post-link Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -387,9 +387,8 @@ TraverseCGToFindSPIRKernels(const Function *StartingFunction) {
387
387
if (VisitedFunctions.count (ParentF))
388
388
continue ;
389
389
390
- if (ParentF->hasFnAttribute (" referenced-indirectly" )) {
390
+ if (ParentF->hasFnAttribute (" referenced-indirectly" ))
391
391
return {};
392
- }
393
392
394
393
if (ParentF->getCallingConv () == CallingConv::SPIR_KERNEL)
395
394
KernelNames.push_back (ParentF->getName ());
@@ -409,9 +408,8 @@ std::vector<StringRef> getKernelNamesUsingAssert(const Module &M) {
409
408
auto TraverseResult =
410
409
TraverseCGToFindSPIRKernels (DevicelibAssertFailFunction);
411
410
412
- if (TraverseResult.hasValue ()) {
411
+ if (TraverseResult.hasValue ())
413
412
return std::move (*TraverseResult);
414
- }
415
413
416
414
// Here we reached "referenced-indirectly", so we need to find all kernels and
417
415
// return them.
You can’t perform that action at this time.
0 commit comments