mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 15:13:49 -04:00
Fix "not all control paths return a value" MSVC warnings. NFCI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368831 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user