diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/content-address.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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<ContentAddressMethod, HashType> 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 _) { |