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. */ /* Substitute redirects. */
for (auto & [installableS, dir] : redirects) { for (auto & [installable_, dir_] : redirects) {
dir = absPath(dir); auto dir = absPath(dir_);
auto installable = parseInstallable(store, installableS); auto installable = parseInstallable(store, installable_);
auto buildable = installable->toBuildable(); auto buildable = installable->toBuildable();
auto doRedirect = [&](const StorePath & path) auto doRedirect = [&](const StorePath & path)
{ {