[lld] r266306 - Return back the zero parameter of aggregate initialization in OutputSectionFactory::lookup().
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 14 07:24:24 PDT 2016
Author: grimar
Date: Thu Apr 14 09:24:23 2016
New Revision: 266306
URL: http://llvm.org/viewvc/llvm-project?rev=266306&view=rev
Log:
Return back the zero parameter of aggregate initialization in OutputSectionFactory::lookup().
That was removed in r266304, but leads to warnings by Clang.
Thanks to Rafael EspĂndola for pointing on that.
Though I think change was legal from point of C++.
Modified:
lld/trunk/ELF/Writer.cpp
Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=266306&r1=266305&r2=266306&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Thu Apr 14 09:24:23 2016
@@ -994,7 +994,7 @@ public:
OutputSectionBase<ELFT> *lookup(StringRef Name, uint32_t Type,
uintX_t Flags) {
- return Map.lookup({Name, Type, Flags});
+ return Map.lookup({Name, Type, Flags, 0});
}
private:
More information about the llvm-commits
mailing list