From 00c607b5637e6e7b54764c0edb53312abfe032c7 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Tue, 13 Oct 2020 04:11:25 +0000 Subject: [PATCH] Work around clang destructing + capturing bug again --- src/libstore/content-address.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libstore/content-address.cc b/src/libstore/content-address.cc index 4226213b9..6a695fe68 100644 --- a/src/libstore/content-address.cc +++ b/src/libstore/content-address.cc @@ -124,7 +124,8 @@ static std::pair parseContentAddressMethodPrefix ContentAddress parseContentAddress(std::string_view rawCa) { auto rest = rawCa; - auto [caMethod, hashType] = parseContentAddressMethodPrefix(rest); + auto [caMethod, hashType_] = parseContentAddressMethodPrefix(rest); + auto hashType = hashType_; // work around clang bug return std::visit(overloaded { [&](TextHashMethod _) {