Skip to content

Commit

Permalink
Remove unsued variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jzc committed Dec 7, 2023
1 parent c9a2808 commit 8ae5c7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sycl/source/detail/kernel_program_cache.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ class KernelProgramCache {
using BuildState = KernelProgramCache::BuildState;
constexpr size_t MaxAttempts = 2;
for (size_t AttemptCounter = 0;; ++AttemptCounter) {
auto [BuildResult, InsertionTookPlace] = GetCachedBuild();
auto Res = GetCachedBuild();
auto &BuildResult = Res.first;
BuildState Expected = BuildState::BS_Initial;
BuildState Desired = BuildState::BS_InProgress;
if (!BuildResult->State.compare_exchange_strong(Expected, Desired)) {
Expand Down

0 comments on commit 8ae5c7c

Please sign in to comment.