mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-24 06:56:14 +02:00
Work around clang destructing + capturing bug yet again
This commit is contained in:
parent
00c607b563
commit
b6b383d569
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue