[lld] r252864 - [ELF2] Fix gcc warning in section kind switch
Denis Protivensky via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 12 01:11:21 PST 2015
Author: denis-protivensky
Date: Thu Nov 12 03:11:20 2015
New Revision: 252864
URL: http://llvm.org/viewvc/llvm-project?rev=252864&view=rev
Log:
[ELF2] Fix gcc warning in section kind switch
Modified:
lld/trunk/ELF/InputSection.cpp
Modified: lld/trunk/ELF/InputSection.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputSection.cpp?rev=252864&r1=252863&r2=252864&view=diff
==============================================================================
--- lld/trunk/ELF/InputSection.cpp (original)
+++ lld/trunk/ELF/InputSection.cpp Thu Nov 12 03:11:20 2015
@@ -52,6 +52,7 @@ InputSectionBase<ELFT>::getOffset(uintX_
case Merge:
return cast<MergeInputSection<ELFT>>(this)->getOffset(Offset);
}
+ llvm_unreachable("Invalid section kind");
}
template <class ELFT>
More information about the llvm-commits
mailing list