From: Aaron Ballman Date: Tue, 16 Jun 2015 13:14:59 +0000 (+0000) Subject: Silence an MSVC warning about not all control paths returning a value; NFC. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=db8ece3bb78178b834db163f5f488645f2c9f7bb Silence an MSVC warning about not all control paths returning a value; NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239814 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/IR/LLVMContext.cpp b/lib/IR/LLVMContext.cpp index 0cd2a34eb16..6d799e4b965 100644 --- a/lib/IR/LLVMContext.cpp +++ b/lib/IR/LLVMContext.cpp @@ -210,6 +210,7 @@ static const char *getDiagnosticMessagePrefix(DiagnosticSeverity Severity) { case DS_Note: return "note"; } + llvm_unreachable("Unknown DiagnosticSeverity"); } void LLVMContext::diagnose(const DiagnosticInfo &DI) {