diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2019-02-22 14:42:48 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2019-02-22 14:42:48 +0000 |
commit | 3167b3035e8a7fc9c96e00f8e7aad9de218cd0b8 (patch) | |
tree | 843c8cddeca15b5643197b793de8285918388e29 /clang/lib/Sema/SemaExprCXX.cpp | |
parent | 99a6672bba806a2cb8dde1635d529b484345a49e (diff) | |
download | bcm5719-llvm-3167b3035e8a7fc9c96e00f8e7aad9de218cd0b8.tar.gz bcm5719-llvm-3167b3035e8a7fc9c96e00f8e7aad9de218cd0b8.zip |
[CUDA]Delayed diagnostics for the asm instructions.
Adapted targetDiag for the CUDA and used for the delayed diagnostics in
asm constructs. Works for both host and device compilation sides.
Differential Revision: https://reviews.llvm.org/D58463
llvm-svn: 354671
Diffstat (limited to 'clang/lib/Sema/SemaExprCXX.cpp')
-rw-r--r-- | clang/lib/Sema/SemaExprCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp index fe1676abb93..512e256d458 100644 --- a/clang/lib/Sema/SemaExprCXX.cpp +++ b/clang/lib/Sema/SemaExprCXX.cpp @@ -750,7 +750,7 @@ ExprResult Sema::BuildCXXThrow(SourceLocation OpLoc, Expr *Ex, bool IsThrownVarInScope) { // Don't report an error if 'throw' is used in system headers. if (!getLangOpts().CXXExceptions && - !getSourceManager().isInSystemHeader(OpLoc)) { + !getSourceManager().isInSystemHeader(OpLoc) && !getLangOpts().CUDA) { // Delay error emission for the OpenMP device code. targetDiag(OpLoc, diag::err_exceptions_disabled) << "throw"; } |