summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-08-14 11:31:05 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-08-14 11:31:05 +0000
commit828a89e24471e191008b63fe44402f3d4121fd09 (patch)
tree43916dcdd4bf50b9a84615bd74a245c6db97e04b /llvm/lib/Transforms
parent3f40bdb558649e4effdd9e429df6871985333a9c (diff)
downloadbcm5719-llvm-828a89e24471e191008b63fe44402f3d4121fd09.tar.gz
bcm5719-llvm-828a89e24471e191008b63fe44402f3d4121fd09.zip
Fix "not all control paths return a value" MSVC warnings. NFCI.
llvm-svn: 368831
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Coroutines/CoroInternal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Coroutines/CoroInternal.h b/llvm/lib/Transforms/Coroutines/CoroInternal.h
index 98affcc5f44..c151474316f 100644
--- a/llvm/lib/Transforms/Coroutines/CoroInternal.h
+++ b/llvm/lib/Transforms/Coroutines/CoroInternal.h
@@ -165,6 +165,7 @@ struct LLVM_LIBRARY_VISIBILITY Shape {
case coro::ABI::RetconOnce:
return RetconLowering.ResumePrototype->getFunctionType();
}
+ llvm_unreachable("Unknown coro::ABI enum");
}
ArrayRef<Type*> getRetconResultTypes() const {
@@ -198,6 +199,7 @@ struct LLVM_LIBRARY_VISIBILITY Shape {
case coro::ABI::RetconOnce:
return RetconLowering.ResumePrototype->getCallingConv();
}
+ llvm_unreachable("Unknown coro::ABI enum");
}
unsigned getFirstSpillFieldIndex() const {
@@ -208,7 +210,8 @@ struct LLVM_LIBRARY_VISIBILITY Shape {
case coro::ABI::Retcon:
case coro::ABI::RetconOnce:
return 0;
- }
+ }
+ llvm_unreachable("Unknown coro::ABI enum");
}
AllocaInst *getPromiseAlloca() const {
OpenPOWER on IntegriCloud