Fix clang build

This commit is contained in:
Eelco Dolstra
2020-10-22 13:40:30 +02:00
parent f9438fb64a
commit 750ce500c2
+3 -3
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)
{