[lld] r263040 - Fixed "not all control paths return a value" warning. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 9 10:05:35 PST 2016
Author: grimar
Date: Wed Mar 9 12:05:34 2016
New Revision: 263040
URL: http://llvm.org/viewvc/llvm-project?rev=263040&view=rev
Log:
Fixed "not all control paths return a value" warning. NFC.
Modified:
lld/trunk/ELF/InputFiles.cpp
Modified: lld/trunk/ELF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.cpp?rev=263040&r1=263039&r2=263040&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Wed Mar 9 12:05:34 2016
@@ -426,6 +426,7 @@ static uint8_t getGvVisibility(const Glo
case GlobalValue::ProtectedVisibility:
return STV_PROTECTED;
}
+ llvm_unreachable("Unknown visibility");
}
void BitcodeFile::parse(DenseSet<StringRef> &ComdatGroups) {
More information about the llvm-commits
mailing list