Fix "not all control paths return a value" MSVC warnings. NFCI.

llvm-svn: 368829
This commit is contained in:
Simon Pilgrim 2019-08-14 11:29:16 +00:00
parent 544c2e3f8b
commit 8bba4798c2
1 changed files with 2 additions and 0 deletions

View File

@ -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