]> granicus.if.org Git - clang/commit
[OPENMP] Enable c++ exceptions outside of the target constructs iff they are
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 2 May 2018 16:52:07 +0000 (16:52 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 2 May 2018 16:52:07 +0000 (16:52 +0000)
commit1d6233649c68bcf324b4fdf1b434486285dbf6b2
tree253615832a8b2d77cc4773ecd9a42b17cca265e0
parent544011fe9779f8620115192eddbd33b07a6df5ac
[OPENMP] Enable c++ exceptions outside of the target constructs iff they are
enabled for the host.

If the compilation for the host enables C++ exceptions, but they are not
supported by the device, we still need to allow the code with the
exception handling constructs outside of the target regions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@331372 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/LangOptions.def
lib/Frontend/CompilerInvocation.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaStmt.cpp
test/OpenMP/nvptx_target_exceptions_messages.cpp [new file with mode: 0644]