diff options
author | Rui Ueyama <ruiu@google.com> | 2014-05-02 21:48:01 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2014-05-02 21:48:01 +0000 |
commit | 19173a39d33ffccc266215a0dc417484768c2378 (patch) | |
tree | c75dc13406fb8622bfdecaab42245ce5479e0465 /lld/lib/Core/LinkingContext.cpp | |
parent | 271635da0dd701956670b71a150b5acb4ab481fb (diff) | |
download | bcm5719-llvm-19173a39d33ffccc266215a0dc417484768c2378.tar.gz bcm5719-llvm-19173a39d33ffccc266215a0dc417484768c2378.zip |
Don't use "auto" where the actual type is not obvious.
llvm-svn: 207875
Diffstat (limited to 'lld/lib/Core/LinkingContext.cpp')
-rw-r--r-- | lld/lib/Core/LinkingContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/Core/LinkingContext.cpp b/lld/lib/Core/LinkingContext.cpp index 7be470404e0..5915e47588c 100644 --- a/lld/lib/Core/LinkingContext.cpp +++ b/lld/lib/Core/LinkingContext.cpp @@ -65,9 +65,9 @@ LinkingContext::createUndefinedSymbolFile(StringRef filename) const { if (_initialUndefinedSymbols.empty()) return nullptr; std::unique_ptr<SimpleFile> undefinedSymFile(new SimpleFile(filename)); - for (auto undefSymStr : _initialUndefinedSymbols) + for (StringRef undefSym : _initialUndefinedSymbols) undefinedSymFile->addAtom(*(new (_allocator) SimpleUndefinedAtom( - *undefinedSymFile, undefSymStr))); + *undefinedSymFile, undefSym))); return std::move(undefinedSymFile); } |