[llvm-commits] [lld] r172482 - /lld/trunk/lib/ReaderWriter/ELF/WriterELF.cpp
Nick Kledzik
kledzik at apple.com
Mon Jan 14 14:10:22 PST 2013
Author: kledzik
Date: Mon Jan 14 16:10:22 2013
New Revision: 172482
URL: http://llvm.org/viewvc/llvm-project?rev=172482&view=rev
Log:
Fix shadowed variable warning
Modified:
lld/trunk/lib/ReaderWriter/ELF/WriterELF.cpp
Modified: lld/trunk/lib/ReaderWriter/ELF/WriterELF.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/WriterELF.cpp?rev=172482&r1=172481&r2=172482&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/WriterELF.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/WriterELF.cpp Mon Jan 14 16:10:22 2013
@@ -1542,10 +1542,10 @@
/// \brief find a absolute atom pair given a absolute atom name
struct FindByName {
- const std::string name;
- FindByName(const StringRef name) : name(name) {}
+ const std::string _name;
+ FindByName(const StringRef name) : _name(name) {}
bool operator()(AbsoluteAtomPair& j) {
- return j.absoluteAtom()->name() == name;
+ return j.absoluteAtom()->name() == _name;
}
};
More information about the llvm-commits
mailing list