From ad54b049efd97e324817da4d5e7c832556b3fda2 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Tue, 24 Sep 2013 03:44:19 +0000 Subject: [PATCH] Expand auto to improve code readability. llvm-svn: 191272 --- lld/lib/Driver/WinLinkDriver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/lib/Driver/WinLinkDriver.cpp b/lld/lib/Driver/WinLinkDriver.cpp index 1ec5155e847e..19104f7acdce 100644 --- a/lld/lib/Driver/WinLinkDriver.cpp +++ b/lld/lib/Driver/WinLinkDriver.cpp @@ -505,7 +505,7 @@ bool WinLinkDriver::parse(int argc, const char *argv[], PECOFFLinkingContext &ct // Add the libraries specified by /defaultlib unless they are blacklisted by // /nodefaultlib. if (!ctx.getNoDefaultLibAll()) - for (auto defaultLibPath : defaultLibs) + for (const StringRef defaultLibPath : defaultLibs) if (ctx.getNoDefaultLibs().find(defaultLibPath) == ctx.getNoDefaultLibs().end()) inputGraph.addInputElement(std::unique_ptr(