[llvm] r332238 - Fix "not all control paths return a value" MSVC warning. NFCI.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon May 14 05:20:19 PDT 2018


Author: rksimon
Date: Mon May 14 05:20:19 2018
New Revision: 332238

URL: http://llvm.org/viewvc/llvm-project?rev=332238&view=rev
Log:
Fix "not all control paths return a value" MSVC warning. NFCI.

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

Modified: llvm/trunk/lib/IR/Core.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Core.cpp?rev=332238&r1=332237&r2=332238&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Core.cpp (original)
+++ llvm/trunk/lib/IR/Core.cpp Mon May 14 05:20:19 2018
@@ -290,6 +290,7 @@ map_to_llvmModFlagBehavior(LLVMModuleFla
   case LLVMModuleFlagBehaviorAppendUnique:
     return Module::ModFlagBehavior::AppendUnique;
   }
+  llvm_unreachable("Unknown LLVMModuleFlagBehavior");
 }
 
 static LLVMModuleFlagBehavior




More information about the llvm-commits mailing list