From: George Rimar Date: Wed, 9 Mar 2016 18:05:34 +0000 (+0000) Subject: Fixed "not all control paths return a value" warning. NFC. X-Git-Tag: llvmorg-3.9.0-rc1~12155 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=599d77246db07b436c3b2b46b2e7d2dc3cb67578;p=platform%2Fupstream%2Fllvm.git Fixed "not all control paths return a value" warning. NFC. llvm-svn: 263040 --- diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index 951820a..ee5c691 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -426,6 +426,7 @@ static uint8_t getGvVisibility(const GlobalValue *GV) { case GlobalValue::ProtectedVisibility: return STV_PROTECTED; } + llvm_unreachable("Unknown visibility"); } void BitcodeFile::parse(DenseSet &ComdatGroups) {