[llvm] r327502 - Fix 'not all control paths return a value' MSVC warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 14 05:04:51 PDT 2018
Author: rksimon
Date: Wed Mar 14 05:04:51 2018
New Revision: 327502
URL: http://llvm.org/viewvc/llvm-project?rev=327502&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=327502&r1=327501&r2=327502&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Core.cpp (original)
+++ llvm/trunk/lib/IR/Core.cpp Wed Mar 14 05:04:51 2018
@@ -1616,6 +1616,7 @@ LLVMUnnamedAddr LLVMGetUnnamedAddress(LL
case GlobalVariable::UnnamedAddr::Global:
return LLVMGlobalUnnamedAddr;
}
+ llvm_unreachable("Unknown UnnamedAddr kind!");
}
void LLVMSetUnnamedAddress(LLVMValueRef Global, LLVMUnnamedAddr UnnamedAddr) {
More information about the llvm-commits
mailing list