[llvm] r368829 - Fix "not all control paths return a value" MSVC warnings. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 14 04:29:16 PDT 2019
Author: rksimon
Date: Wed Aug 14 04:29:16 2019
New Revision: 368829
URL: http://llvm.org/viewvc/llvm-project?rev=368829&view=rev
Log:
Fix "not all control paths return a value" MSVC warnings. NFCI.
Modified:
llvm/trunk/lib/Transforms/Coroutines/Coroutines.cpp
Modified: llvm/trunk/lib/Transforms/Coroutines/Coroutines.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Coroutines/Coroutines.cpp?rev=368829&r1=368828&r2=368829&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Coroutines/Coroutines.cpp (original)
+++ llvm/trunk/lib/Transforms/Coroutines/Coroutines.cpp Wed Aug 14 04:29:16 2019
@@ -513,6 +513,7 @@ Value *coro::Shape::emitAlloc(IRBuilder<
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<
return;
}
}
+ llvm_unreachable("Unknown coro::ABI enum");
}
LLVM_ATTRIBUTE_NORETURN
More information about the llvm-commits
mailing list