]> granicus.if.org Git - clang/commit
[OPENMP]Delay emission of the error messages for the exceptions.
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 8 Feb 2019 18:02:25 +0000 (18:02 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 8 Feb 2019 18:02:25 +0000 (18:02 +0000)
commita03305e04cab8922eb52a61636e1112c4fc3fb48
tree5e82e3aac2197c13f986e107fe3de91d2bc2a74f
parent494c7e87ffb0fc7fb0741c4c814d72c2b407dc8c
[OPENMP]Delay emission of the error messages for the exceptions.

Fixed diagnostic emission for the exceptions support in case of the
compilation of OpenMP code for the devices. From now on, it uses delayed
diagnostics mechanism, previously used for CUDA only. It allow to
diagnose not allowed used of exceptions only in functions that are going
to be codegen'ed.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@353542 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/LangOptions.def
include/clang/Sema/Sema.h
lib/Frontend/CompilerInvocation.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaOpenMP.cpp
lib/Sema/SemaStmt.cpp
test/OpenMP/nvptx_target_exceptions_messages.cpp