[llvm] r368830 - Fix "not all control paths return a value" MSVC warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 14 04:29:57 PDT 2019
Author: rksimon
Date: Wed Aug 14 04:29:56 2019
New Revision: 368830
URL: http://llvm.org/viewvc/llvm-project?rev=368830&view=rev
Log:
Fix "not all control paths return a value" MSVC warning. NFCI.
Modified:
llvm/trunk/lib/Transforms/Coroutines/CoroSplit.cpp
Modified: llvm/trunk/lib/Transforms/Coroutines/CoroSplit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Coroutines/CoroSplit.cpp?rev=368830&r1=368829&r2=368830&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Coroutines/CoroSplit.cpp (original)
+++ llvm/trunk/lib/Transforms/Coroutines/CoroSplit.cpp Wed Aug 14 04:29:56 2019
@@ -141,6 +141,7 @@ private:
case Kind::SwitchCleanup:
return true;
}
+ llvm_unreachable("Unknown CoroCloner::Kind enum");
}
void createDeclaration();
More information about the llvm-commits
mailing list