[llvm] r239814 - Silence an MSVC warning about not all control paths returning a value; NFC.

Aaron Ballman aaron at aaronballman.com
Tue Jun 16 06:14:59 PDT 2015


Author: aaronballman
Date: Tue Jun 16 08:14:59 2015
New Revision: 239814

URL: http://llvm.org/viewvc/llvm-project?rev=239814&view=rev
Log:
Silence an MSVC warning about not all control paths returning a value; NFC.

Modified:
    llvm/trunk/lib/IR/LLVMContext.cpp

Modified: llvm/trunk/lib/IR/LLVMContext.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/LLVMContext.cpp?rev=239814&r1=239813&r2=239814&view=diff
==============================================================================
--- llvm/trunk/lib/IR/LLVMContext.cpp (original)
+++ llvm/trunk/lib/IR/LLVMContext.cpp Tue Jun 16 08:14:59 2015
@@ -210,6 +210,7 @@ static const char *getDiagnosticMessageP
   case DS_Note:
     return "note";
   }
+  llvm_unreachable("Unknown DiagnosticSeverity");
 }
 
 void LLVMContext::diagnose(const DiagnosticInfo &DI) {





More information about the llvm-commits mailing list