Update src/libstore/build.cc

This commit is contained in:
John Ericson 2020-07-21 09:47:40 -04:00 committed by GitHub
parent bf0dca7790
commit 5ce95b9529
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3725,7 +3725,7 @@ void DerivationGoal::registerOutputs()
DerivationOutputFloating outputHash;
std::visit(overloaded {
[&](DerivationOutputInputAddressed doi) {
throw Error("No.");
assert(false); // Enclosing `if` handles this case in other branch
},
[&](DerivationOutputFixed dof) {
outputHash = DerivationOutputFloating {