[lld] r256415 - Fixed MSVS warning "not all control paths return a value". NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 25 03:15:26 PST 2015
Author: grimar
Date: Fri Dec 25 05:15:26 2015
New Revision: 256415
URL: http://llvm.org/viewvc/llvm-project?rev=256415&view=rev
Log:
Fixed MSVS warning "not all control paths return a value". NFC.
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=256415&r1=256414&r2=256415&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Fri Dec 25 05:15:26 2015
@@ -634,6 +634,7 @@ Writer<ELFT>::createOutputSection(InputS
case InputSectionBase<ELFT>::MipsReginfo:
return new (MReginfoSecAlloc.Allocate()) MipsReginfoOutputSection<ELFT>();
}
+ llvm_unreachable("Unknown output section type");
}
// Create output section objects and add them to OutputSections.
More information about the llvm-commits
mailing list