aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-10-13 04:36:20 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-10-13 04:36:20 +0000
commitb6b383d5697c7d5a6a4ecc3d5260f8f1f99c2213 (patch)
tree9d4944a9023dcf9eaab9e87a0b365009a43d0956
parent00c607b5637e6e7b54764c0edb53312abfe032c7 (diff)
Work around clang destructing + capturing bug yet again
-rw-r--r--src/libstore/daemon.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/daemon.cc b/src/libstore/daemon.cc
index 0e2ae4134..76f463af4 100644
--- a/src/libstore/daemon.cc
+++ b/src/libstore/daemon.cc
@@ -380,7 +380,8 @@ static void performOp(TunnelLogger * logger, ref<Store> store,
logger->startWork();
auto pathInfo = [&]() {
// NB: FramedSource must be out of scope before logger->stopWork();
- auto [contentAddressMethod, hashType] = parseContentAddressMethod(camStr);
+ auto [contentAddressMethod, hashType_] = parseContentAddressMethod(camStr);
+ auto hashType = hashType_; // work around clang bug
FramedSource source(from);
// TODO this is essentially RemoteStore::addCAToStore. Move it up to Store.
return std::visit(overloaded {