From b6b383d5697c7d5a6a4ecc3d5260f8f1f99c2213 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Tue, 13 Oct 2020 04:36:20 +0000 Subject: [PATCH] Work around clang destructing + capturing bug yet again --- src/libstore/daemon.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, 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 {