[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)
commit1ab34573197db6efd1eb07b95b836e46f1f88478
treeb6d6e21b55f9a2ce3ef17ca0cd09bbd9677bf9b5
parent150cb6d91af313b84f1876e8a1f016cfe1e1e6d5
[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.

llvm-svn: 331372
clang/include/clang/Basic/LangOptions.def
clang/lib/Frontend/CompilerInvocation.cpp
clang/lib/Sema/SemaExprCXX.cpp
clang/lib/Sema/SemaStmt.cpp
clang/test/OpenMP/nvptx_target_exceptions_messages.cpp [new file with mode: 0644]