summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-09-08 19:41:35 +0000
committerRui Ueyama <ruiu@google.com>2017-09-08 19:41:35 +0000
commit901132092187aeebcbafc6332f6235d3dea3e915 (patch)
treef0470bb10d03705f5d3f9ac689bedb6a68e6d79e
parent461ed08fbdf486cf2905cec6dc4b901e5d46d3b1 (diff)
downloadbcm5719-llvm-901132092187aeebcbafc6332f6235d3dea3e915.tar.gz
bcm5719-llvm-901132092187aeebcbafc6332f6235d3dea3e915.zip
Remove a redundant local variable.
llvm-svn: 312823
-rw-r--r--lld/ELF/Writer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index d667894a851..276b815c79f 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -299,8 +299,7 @@ template <class ELFT> void Writer<ELFT>::createSyntheticSections() {
Add(InX::BuildId);
}
- auto Commons = createCommonSections();
- for (InputSection *S : Commons)
+ for (InputSection *S : createCommonSections())
Add(S);
InX::Bss = make<BssSection>(".bss");
OpenPOWER on IntegriCloud