llvm-project/clang/lib/Sema
Eli Friedman 795f67934d [Sema] Don't treat a non-null template argument as if it were null.
The way this code checks whether a pointer is null is wrong for other
reasons; it doesn't actually check whether a null pointer constant is a
"constant" in the C++ standard sense.  But this fix at least makes sure
we don't treat a non-null pointer as if it were null.

Fixes https://github.com/llvm/llvm-project/issues/57883

Differential Revision: https://reviews.llvm.org/D134928
2022-10-19 14:40:52 -07:00
..
AnalysisBasedWarnings.cpp Use the range-based overload of llvm::sort where possible 2022-07-23 15:13:25 +02:00
CMakeLists.txt [HLSL] Support cbuffer/tbuffer for hlsl. 2022-09-21 10:07:43 -07:00
CodeCompleteConsumer.cpp [clang] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 09:12:46 -07:00
CoroutineStmtBuilder.h
DeclSpec.cpp [C2x] implement typeof and typeof_unqual 2022-09-28 13:27:52 -04:00
DelayedDiagnostic.cpp
HLSLExternalSemaSource.cpp [HLSL] Add Resource kind for HLSLResourceAttr. 2022-10-11 09:41:14 -07:00
IdentifierResolver.cpp [HLSL] Support cbuffer/tbuffer for hlsl. 2022-09-21 10:07:43 -07:00
JumpDiagnostics.cpp [clang] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 09:12:46 -07:00
MultiplexExternalSemaSource.cpp [NFC] Make MultiplexExternalSemaSource own sources 2022-09-02 13:57:39 -05:00
OpenCLBuiltins.td [OpenCL] Guard depth image builtins 2022-09-13 10:10:48 +01:00
ParsedAttr.cpp [clang] Use std::size instead of llvm::array_lengthof 2022-09-08 17:20:25 -06:00
Scope.cpp Use value instead of getValue (NFC) 2022-07-29 21:18:41 -07:00
ScopeInfo.cpp [clang] Disallow mixing SEH and Objective-C exceptions 2021-10-20 14:18:12 -04:00
Sema.cpp [C++2a] P0634r3: Down with typename! 2022-09-28 09:50:19 -07:00
SemaAccess.cpp [C++2b] Implement multidimentional subscript operator 2022-02-08 12:10:47 -05:00
SemaAttr.cpp [clang] Add support for #pragma strict_gs_check 2022-09-19 20:07:14 +00:00
SemaAvailability.cpp [HLSL] Enable availability attribute 2022-09-16 16:04:27 -05:00
SemaCUDA.cpp [CUDA] remove duplicate condition 2022-07-22 11:27:19 -04:00
SemaCXXScopeSpec.cpp [C++20] [Module] Support reachable definition initially/partially 2022-06-29 12:48:48 +08:00
SemaCast.cpp [C2x] Implement support for nullptr and nullptr_t 2022-10-14 10:06:02 -04:00
SemaChecking.cpp [Clang] Fix crash when checking misaligned member with dependent type 2022-10-18 21:05:49 +08:00
SemaCodeComplete.cpp [C2x] Implement support for nullptr and nullptr_t 2022-10-14 10:06:02 -04:00
SemaConcept.cpp [C++20] Implement P2113R0: Changes to the Partial Ordering of Constrained Functions 2022-10-18 11:58:57 -07:00
SemaConsumer.cpp
SemaCoroutine.cpp [C++20] [Coroutines] Exit early if we found co_await appears in 2022-10-09 14:59:27 +08:00
SemaDecl.cpp [HLSL] Add utility to convert environment to stage 2022-10-12 16:31:30 -05:00
SemaDeclAttr.cpp [HLSL] Add SV_DispatchThreadID 2022-10-18 16:17:19 -07:00
SemaDeclCXX.cpp Stop evaluating trailing requires clause after overload resolution 2022-10-18 06:08:10 -07:00
SemaDeclObjC.cpp [clang] Qualify auto in range-based for loops (NFC) 2022-09-03 23:27:27 -07:00
SemaExceptionSpec.cpp [OpenMP] Initial parsing and semantic support for 'parallel masked taskloop simd' construct 2022-07-01 08:57:15 -07:00
SemaExpr.cpp Stop evaluating trailing requires clause after overload resolution 2022-10-18 06:08:10 -07:00
SemaExprCXX.cpp [clang] Track the templated entity in type substitution. 2022-10-15 22:08:36 +02:00
SemaExprMember.cpp [clang] Fix missing template arguments in AST of access to member variable template 2022-09-21 00:46:18 +02:00
SemaExprObjC.cpp [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
SemaFixItUtils.cpp [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
SemaHLSL.cpp [HLSL] Support cbuffer/tbuffer for hlsl. 2022-09-21 10:07:43 -07:00
SemaInit.cpp [Clang] Fix variant crashes from GH58028, GH57370 2022-09-30 21:17:34 +03:00
SemaLambda.cpp [clang] Fix a warning 2022-10-15 12:50:34 -07:00
SemaLookup.cpp [clang][Sema] Fix crash on invalid base destructor 2022-10-05 15:23:15 +02:00
SemaModule.cpp [C++20] [Modules] Remove assertion of current module when acting on import 2022-10-08 16:44:51 +08:00
SemaObjCProperty.cpp [clang/Sema] Fix non-deterministic order for certain kind of diagnostics 2022-10-05 12:58:01 -07:00
SemaOpenMP.cpp [Clang][OpenMP] Add one missing form of atomic compare capture 2022-10-07 13:30:38 -04:00
SemaOverload.cpp [C++20] Implement P2113R0: Changes to the Partial Ordering of Constrained Functions 2022-10-18 11:58:57 -07:00
SemaPseudoObject.cpp [clang] NFC: Rename rvalue to prvalue 2021-06-09 12:27:10 +02:00
SemaRISCVVectorLookup.cpp [RISCV][Clang] Support RVV policy functions. 2022-08-01 17:32:08 +00:00
SemaSYCL.cpp [SYCL] Diagnose uses of zero length arrays 2021-12-29 15:30:18 +03:00
SemaStmt.cpp [clang] Use x.empty() instead of llvm::empty(x) (NFC) 2022-09-18 11:07:50 -07:00
SemaStmtAsm.cpp [Clang] reject bit-fields as instruction operands in Microsoft style inline asm blocks. 2022-10-10 15:45:02 -04:00
SemaStmtAttr.cpp [clang][parse] Move source range into ParsedAttibutesView 2022-03-24 08:11:57 +01:00
SemaTemplate.cpp [Sema] Don't treat a non-null template argument as if it were null. 2022-10-19 14:40:52 -07:00
SemaTemplateDeduction.cpp [Clang] constraints partial ordering should work with deduction guide 2022-10-18 17:30:47 -07:00
SemaTemplateInstantiate.cpp [clang] Track the templated entity in type substitution. 2022-10-15 22:08:36 +02:00
SemaTemplateInstantiateDecl.cpp [clang] Track the templated entity in type substitution. 2022-10-15 22:08:36 +02:00
SemaTemplateVariadic.cpp [clang] Track the templated entity in type substitution. 2022-10-15 22:08:36 +02:00
SemaType.cpp [clang] adds `__is_bounded_array` and `__is_unbounded_array` as builtins 2022-10-11 00:13:58 +00:00
TreeTransform.h [clang] Track the templated entity in type substitution. 2022-10-15 22:08:36 +02:00
TypeLocBuilder.cpp [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
TypeLocBuilder.h [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
UsedDeclVisitor.h [HIP][OpenMP] Fix assertion in deferred diag 2021-10-25 11:07:40 -04:00