Skip to content

Commit 3ac5f46

Browse files
[SYCL][NFC] Stop using deprecated llvm::Optional API (#7433)
`hasValue` was deprecated in favor of `has_value` in b5f8d42
1 parent 6aefd63 commit 3ac5f46

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ void ModuleSplitterBase::verifyNoCrossModuleDeviceGlobalUsage() {
505505
auto EntryPointModulesIt = EntryPointModules.find(F);
506506
assert(EntryPointModulesIt != EntryPointModules.end() &&
507507
"There is no group for an entry point");
508-
if (!VarEntryPointModule.hasValue()) {
508+
if (!VarEntryPointModule.has_value()) {
509509
VarEntryPointModule = EntryPointModulesIt->second;
510510
return;
511511
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ std::vector<StringRef> getKernelNamesUsingAssert(const Module &M) {
286286
auto TraverseResult =
287287
traverseCGToFindSPIRKernels(DevicelibAssertFailFunction);
288288

289-
if (TraverseResult.hasValue())
289+
if (TraverseResult.has_value())
290290
return std::move(*TraverseResult);
291291

292292
// Here we reached "referenced-indirectly", so we need to find all kernels and

0 commit comments

Comments
 (0)