summaryrefslogtreecommitdiff
path: root/src/buildtool/main/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/main/main.cpp')
-rw-r--r--src/buildtool/main/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/buildtool/main/main.cpp b/src/buildtool/main/main.cpp
index 1cf9901b..ee118f4a 100644
--- a/src/buildtool/main/main.cpp
+++ b/src/buildtool/main/main.cpp
@@ -248,8 +248,7 @@ void StoreTargetCacheShard(
std::exit(kExitFailure);
}
[[maybe_unused]] auto id = storage.CAS().StoreBlob(*backend_description);
- EnsuresAudit(id and ArtifactDigest{*id}.hash() ==
- storage_config.backend_description_id);
+ EnsuresAudit(id and id->hash() == storage_config.backend_description_id);
}
#endif // BOOTSTRAP_BUILD_TOOL