зеркало из https://github.com/microsoft/clang-1.git
terminate doesn't throw.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90308 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
716f0b3e2e
Коммит
666571afad
|
@ -440,6 +440,7 @@ void CodeGenFunction::EmitCXXTryStmt(const CXXTryStmt &S) {
|
|||
llvm::CallInst *TerminateCall =
|
||||
Builder.CreateCall(getTerminateFn(*this));
|
||||
TerminateCall->setDoesNotReturn();
|
||||
TerminateCall->setDoesNotThrow();
|
||||
Builder.CreateUnreachable();
|
||||
|
||||
// Clear the insertion point to indicate we are in unreachable code.
|
||||
|
|
Загрузка…
Ссылка в новой задаче