llvm-project/clang/lib/Sema
Matheus Izvekov e64e6924b8 [clang] fix crash on template instantiation of invalid requires expressions
See PR48656.

The implementation of the template instantiation of requires expressions
was incorrectly trying to get the expression from an 'ExprRequirement'
before checking if it was an error state.

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>

Reviewed By: rsmith

Differential Revision: https://reviews.llvm.org/D107399
2021-08-03 23:16:04 +02:00
..
AnalysisBasedWarnings.cpp [-Wcalled-once] Do not run analysis on Obj-C++ 2021-04-22 15:20:52 +03:00
CMakeLists.txt [clang] Make libBasic not depend on MC 2021-04-28 12:16:22 -04:00
CodeCompleteConsumer.cpp [clang] Rename StringRef _lower() method calls to _insensitive() 2021-06-25 00:22:01 +03:00
CoroutineStmtBuilder.h
DeclSpec.cpp Re-commit [clang] Add support for the "abstract" contextual keyword of MSVC 2021-05-31 18:45:26 +02:00
DelayedDiagnostic.cpp
IdentifierResolver.cpp
JumpDiagnostics.cpp [Windows SEH]: HARDWARE EXCEPTION HANDLING (MSVC -EHa) - Part 1 2021-05-17 22:42:17 -07:00
MultiplexExternalSemaSource.cpp [clang][AST] Improve AST Reader/Writer memory footprint 2021-05-20 15:34:29 -07:00
OpenCLBuiltins.td [OpenCL] Add cl_khr_integer_dot_product 2021-07-23 10:10:16 +01:00
ParsedAttr.cpp Correct the tablegen for checking mutually exclusive stmt attrs 2021-04-13 15:20:30 -04:00
Scope.cpp
ScopeInfo.cpp [clang] Enable support for #pragma STDC FENV_ACCESS 2020-10-25 06:46:25 -07:00
Sema.cpp [OpenCL] Add support of __opencl_c_pipes feature macro. 2021-07-30 18:10:25 +03:00
SemaAccess.cpp [clang][NFC] Break out BaseUsingDecl from UsingDecl 2021-06-07 06:29:28 -07:00
SemaAttr.cpp Simplify allowing pragma float_control in a linkage specification 2021-07-28 13:29:41 -04:00
SemaAvailability.cpp [clang] RecursiveASTVisitor visits ObjCPropertyRefExpr's class receiver 2021-06-01 14:45:25 -04:00
SemaCUDA.cpp [CUDA][HIP] Promote const variables to constant 2021-06-01 21:28:41 -04:00
SemaCXXScopeSpec.cpp [clang] p1099 using enum part 2 2021-06-08 11:11:46 -07:00
SemaCast.cpp [PowerPC] Emit error for Altivec vector initializations when -faltivec-src-compat=gcc is specified 2021-07-30 09:35:43 -05:00
SemaChecking.cpp [clang][NFC] Typo fixes. Test commit. 2021-08-02 13:25:08 +01:00
SemaCodeComplete.cpp [clang] Rename StringRef _lower() method calls to _insensitive() 2021-06-25 00:22:01 +03:00
SemaConcept.cpp [clang] fix concepts crash on substitution failure during normalization 2021-07-28 23:28:45 +02:00
SemaConsumer.cpp
SemaCoroutine.cpp [clang] NFC: change uses of `Expr->getValueKind` into `is?Value` 2021-07-28 03:09:31 +02:00
SemaDecl.cpp [clang][patch][FPEnv] Make initialization of C++ globals strictfp aware 2021-07-29 12:02:37 -04:00
SemaDeclAttr.cpp [clang][patch][FPEnv] Make initialization of C++ globals strictfp aware 2021-07-29 12:02:37 -04:00
SemaDeclCXX.cpp [clang] fix canonicalization of nested name specifiers 2021-08-03 22:39:48 +02:00
SemaDeclObjC.cpp [ObjC] Add a command line flag that disables recognition of objc_direct for testability 2021-04-06 11:17:01 -04:00
SemaExceptionSpec.cpp [OpenMP] Implement '#pragma omp unroll'. 2021-06-10 14:30:17 -05:00
SemaExpr.cpp [PowerPC] Emit error for Altivec vector initializations when -faltivec-src-compat=gcc is specified 2021-07-30 09:35:43 -05:00
SemaExprCXX.cpp [clang] Add support for optional flag -fnew-infallible to restrict exception propagation 2021-08-02 15:45:06 -07:00
SemaExprMember.cpp [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
SemaExprObjC.cpp [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
SemaFixItUtils.cpp [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
SemaInit.cpp [clang] NFC: change uses of `Expr->getValueKind` into `is?Value` 2021-07-28 03:09:31 +02:00
SemaLambda.cpp [clang][patch][FPEnv] Make initialization of C++ globals strictfp aware 2021-07-29 12:02:37 -04:00
SemaLookup.cpp [clang][patch][FPEnv] Make initialization of C++ globals strictfp aware 2021-07-29 12:02:37 -04:00
SemaModule.cpp Change Module::ASTFile and ModuleFile::File => Optional<FileEntryRef>, NFC 2020-11-02 15:11:51 -05:00
SemaObjCProperty.cpp [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
SemaOpenMP.cpp Stop emit incomplete type error for a variable in a map clause 2021-08-03 10:51:32 -07:00
SemaOverload.cpp Partially implement P1401R5 (Narrowing contextual conversions to bool) 2021-07-12 08:06:27 -04:00
SemaPseudoObject.cpp [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
SemaSYCL.cpp Revert "[SYCL][NFC] Ensure SYCL kernel for unique-stable-name is unqualified." 2021-06-21 13:23:52 -07:00
SemaStmt.cpp [clang] P2266 implicit moves STL workaround 2021-07-26 22:21:31 +02:00
SemaStmtAsm.cpp [ADT] Remove APInt/APSInt toString() std::string variants 2021-06-11 13:19:15 +01:00
SemaStmtAttr.cpp Implemented [[clang::musttail]] attribute for guaranteed tail calls. 2021-04-15 17:12:21 -07:00
SemaTemplate.cpp [clang] fix canonicalization of nested name specifiers 2021-08-03 22:39:48 +02:00
SemaTemplateDeduction.cpp [clang] SIGSEGV at DeduceTemplateArgumentsByTypeMatch 2021-07-30 12:40:38 +03:00
SemaTemplateInstantiate.cpp [clang] fix crash on template instantiation of invalid requires expressions 2021-08-03 23:16:04 +02:00
SemaTemplateInstantiateDecl.cpp [clang][patch][FPEnv] Make initialization of C++ globals strictfp aware 2021-07-29 12:02:37 -04:00
SemaTemplateVariadic.cpp Revert "Following up on PR48517, fix handling of template arguments that refer" 2021-01-20 15:55:35 +01:00
SemaType.cpp [OpenCL] Add support of __opencl_c_3d_image_writes feature macro 2021-07-30 04:54:28 +03:00
TreeTransform.h [clang] NFC: add line break at the end of if expressions 2021-06-30 19:48:24 +08:00
TypeLocBuilder.cpp
TypeLocBuilder.h
UsedDeclVisitor.h DeferredDiagnosticsEmitter crashes 2020-10-08 11:42:21 -04:00