From: Simon Pilgrim Date: Wed, 14 Aug 2019 11:29:16 +0000 (+0000) Subject: Fix "not all control paths return a value" MSVC warnings. NFCI. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8bba4798c2e9cf2a4255c6e3d85ced462e0b36b2;p=platform%2Fupstream%2Fllvm.git Fix "not all control paths return a value" MSVC warnings. NFCI. llvm-svn: 368829 --- diff --git a/llvm/lib/Transforms/Coroutines/Coroutines.cpp b/llvm/lib/Transforms/Coroutines/Coroutines.cpp index 1217657..f39483b 100644 --- a/llvm/lib/Transforms/Coroutines/Coroutines.cpp +++ b/llvm/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