diff options
author | Saar Raz <saar@raz.email> | 2020-01-18 09:11:43 +0200 |
---|---|---|
committer | Saar Raz <saar@raz.email> | 2020-01-19 00:23:26 +0200 |
commit | a0f50d731639350c7a79f140f026c27a18215531 (patch) | |
tree | 61547f504b4e459c0000aac43e9fb77551e120f8 /clang/lib/Sema/SemaExceptionSpec.cpp | |
parent | ed9cc6404e7fc509096b30c8d8e9dc28d531c718 (diff) | |
download | llvm-a0f50d731639350c7a79f140f026c27a18215531.zip llvm-a0f50d731639350c7a79f140f026c27a18215531.tar.gz llvm-a0f50d731639350c7a79f140f026c27a18215531.tar.bz2 |
[Concepts] Requires Expressions
Implement support for C++2a requires-expressions.
Re-commit after compilation failure on some platforms due to alignment issues with PointerIntPair.
Differential Revision: https://reviews.llvm.org/D50360
Diffstat (limited to 'clang/lib/Sema/SemaExceptionSpec.cpp')
-rw-r--r-- | clang/lib/Sema/SemaExceptionSpec.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaExceptionSpec.cpp b/clang/lib/Sema/SemaExceptionSpec.cpp index 5aedbe7..193eaa3 100644 --- a/clang/lib/Sema/SemaExceptionSpec.cpp +++ b/clang/lib/Sema/SemaExceptionSpec.cpp @@ -1386,6 +1386,7 @@ CanThrowResult Sema::canThrow(const Stmt *S) { case Expr::StringLiteralClass: case Expr::SourceLocExprClass: case Expr::ConceptSpecializationExprClass: + case Expr::RequiresExprClass: // These expressions can never throw. return CT_Cannot; |