From 60e3afb22680b36b15a071ea03b4334f2adc1942 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Wed, 14 Aug 2019 11:29:16 +0000 Subject: [PATCH] Fix "not all control paths return a value" MSVC warnings. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368829 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Coroutines/Coroutines.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Transforms/Coroutines/Coroutines.cpp b/lib/Transforms/Coroutines/Coroutines.cpp index 12176570b7a..f39483b2751 100644 --- a/lib/Transforms/Coroutines/Coroutines.cpp +++ b/lib/Transforms/Coroutines/Coroutines.cpp @@ -513,6 +513,7 @@ Value *coro::Shape::emitAlloc(IRBuilder<> &Builder, Value *Size, return Call; } } + llvm_unreachable("Unknown coro::ABI enum"); } void coro::Shape::emitDealloc(IRBuilder<> &Builder, Value *Ptr, @@ -532,6 +533,7 @@ void coro::Shape::emitDealloc(IRBuilder<> &Builder, Value *Ptr, return; } } + llvm_unreachable("Unknown coro::ABI enum"); } LLVM_ATTRIBUTE_NORETURN -- 2.40.0