File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
llvm/tools/sycl-post-link Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -505,7 +505,7 @@ void ModuleSplitterBase::verifyNoCrossModuleDeviceGlobalUsage() {
505
505
auto EntryPointModulesIt = EntryPointModules.find (F);
506
506
assert (EntryPointModulesIt != EntryPointModules.end () &&
507
507
" There is no group for an entry point" );
508
- if (!VarEntryPointModule.hasValue ()) {
508
+ if (!VarEntryPointModule.has_value ()) {
509
509
VarEntryPointModule = EntryPointModulesIt->second ;
510
510
return ;
511
511
}
Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ std::vector<StringRef> getKernelNamesUsingAssert(const Module &M) {
286
286
auto TraverseResult =
287
287
traverseCGToFindSPIRKernels (DevicelibAssertFailFunction);
288
288
289
- if (TraverseResult.hasValue ())
289
+ if (TraverseResult.has_value ())
290
290
return std::move (*TraverseResult);
291
291
292
292
// Here we reached "referenced-indirectly", so we need to find all kernels and
You can’t perform that action at this time.
0 commit comments