aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-10-13 04:11:25 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-10-13 04:11:25 +0000
commit00c607b5637e6e7b54764c0edb53312abfe032c7 (patch)
tree07c0203cdf798dceb2372bdfeee1e2af381a7542 /src/libstore
parentd8d7f50f6283285bea56da53b6b662310127412f (diff)
Work around clang destructing + capturing bug again
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/content-address.cc3
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 _) {