Fix clang build

This commit is contained in:
Eelco Dolstra 2020-10-19 12:03:15 +02:00
parent f9438fb64a
commit 750ce500c2

View file

@ -248,9 +248,9 @@ struct Common : InstallableCommand, MixProfile
}
/* Substitute redirects. */
for (auto & [installableS, dir] : redirects) {
dir = absPath(dir);
auto installable = parseInstallable(store, installableS);
for (auto & [installable_, dir_] : redirects) {
auto dir = absPath(dir_);
auto installable = parseInstallable(store, installable_);
auto buildable = installable->toBuildable();
auto doRedirect = [&](const StorePath & path)
{