From db8ece3bb78178b834db163f5f488645f2c9f7bb Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Tue, 16 Jun 2015 13:14:59 +0000 Subject: [PATCH] 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 --- lib/IR/LLVMContext.cpp | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.34.1