llvm-project/clang/lib/Sema
Faisal Vali 30622bb6a5 Fix PR20334: invalid assertion while diagnosing list initialization failure
https://llvm.org/bugs/show_bug.cgi?id=20334

Unfortunately, clang currently checks for a certain brokenness of implementations of std::initializer_list in CodeGen (void 
AggExprEmitter::VisitCXXStdInitializerListExpr), not in SemaInit.  Until that is fixed, make sure we don't let broken attempts that are aggregates leak through into sema, which allows maintenance of expected invariants, and avoids triggering an assertion.



 

llvm-svn: 254889
2015-12-07 02:37:44 +00:00
..
AnalysisBasedWarnings.cpp Use Sema::getLocForEndOfToken instead of Preprocessor::getLocForEndOfToken. NFC 2015-11-15 02:31:46 +00:00
AttributeList.cpp Roll-back r250822. 2015-10-20 13:23:58 +00:00
CMakeLists.txt [coroutines] Initial stub Sema functionality for handling coroutine await / yield / return. 2015-10-22 06:13:50 +00:00
CodeCompleteConsumer.cpp Roll-back r250822. 2015-10-20 13:23:58 +00:00
DeclSpec.cpp [Sema] Fix filename in header. NFC 2015-11-15 17:27:55 +00:00
DelayedDiagnostic.cpp Add -Wpartial-availability. 2015-03-19 19:18:22 +00:00
IdentifierResolver.cpp [modules] Remove redundant import of lexical decls when building a lookup table 2015-03-23 03:25:59 +00:00
JumpDiagnostics.cpp Some minor ARC diagnostic improvements. 2015-10-21 18:06:38 +00:00
Makefile
MultiplexExternalSemaSource.cpp Roll-back r250822. 2015-10-20 13:23:58 +00:00
Scope.cpp MS ABI: Implement the MSVC 2015 scheme for scope disambiguation 2015-03-19 21:54:30 +00:00
ScopeInfo.cpp Properly clear current coroutine promise on FunctionScopeInfo reuse. Should 2015-10-27 07:47:45 +00:00
Sema.cpp [Sema] Use getLangOpts in Sema instead of Preprocessor. Call getTargetInfo on the AST context instead of Preprocessor. NFC 2015-11-15 17:27:57 +00:00
SemaAccess.cpp -Wdeprecated: SavedInstanceContext is returned by value but isn't really copyable, but it can be made movable 2015-08-12 22:58:10 +00:00
SemaAttr.cpp Implement section pragma feedback on r205810 2015-03-04 23:39:17 +00:00
SemaCUDA.cpp [CUDA] Allow function overloads in CUDA based on host/device attributes. 2015-09-22 17:22:59 +00:00
SemaCXXScopeSpec.cpp Avoid duplicated diagnostic when lookup for a nested-name-specifier fails due to ambiguity. 2015-11-12 22:40:09 +00:00
SemaCast.cpp Define weak and __weak to mean ARC-style weak references, even in MRC. 2015-10-22 18:38:17 +00:00
SemaChecking.cpp PR17381: Treat undefined behavior during expression evaluation as an unmodeled 2015-12-03 01:36:22 +00:00
SemaCodeComplete.cpp [Sema] Use getLangOpts in Sema instead of Preprocessor. Call getTargetInfo on the AST context instead of Preprocessor. NFC 2015-11-15 17:27:57 +00:00
SemaConsumer.cpp
SemaCoroutine.cpp [coroutines] Build a CoroutineBodyStmt when finishing parsing a coroutine, and form the initial_suspend, final_suspend, and get_return_object calls. 2015-11-24 02:34:39 +00:00
SemaDecl.cpp Add the `pass_object_size` attribute to clang. 2015-12-02 21:58:08 +00:00
SemaDeclAttr.cpp Revert "Fix for merging decls in pragma weak Calling CheckFunctionDeclaration so that 2 decls for the 'weak' are merged. Differential Revision: http://reviews.llvm.org/D13048" 2015-12-03 11:37:28 +00:00
SemaDeclCXX.cpp PR25731: namespace alias declarations can appear at block scope; ensure that we 2015-12-03 23:24:04 +00:00
SemaDeclObjC.cpp Remove DataRecursiveASTVisitor; it no longer serves any purpose, since it's just an alias for RecursiveASTVisitor. 2015-11-24 03:55:01 +00:00
SemaExceptionSpec.cpp [MSVC] 'property' with an empty array in array subscript expression. 2015-11-25 12:01:00 +00:00
SemaExpr.cpp Add the `pass_object_size` attribute to clang. 2015-12-02 21:58:08 +00:00
SemaExprCXX.cpp [Sema] Implement several unary type traits more accurately 2015-11-16 06:58:51 +00:00
SemaExprMember.cpp Look through using decls when classifying implicit member access 2015-10-20 18:12:08 +00:00
SemaExprObjC.cpp Use Sema::getLocForEndOfToken instead of Preprocessor::getLocForEndOfToken. NFC 2015-11-15 02:31:46 +00:00
SemaFixItUtils.cpp Use Sema::getLocForEndOfToken instead of Preprocessor::getLocForEndOfToken. NFC 2015-11-15 02:31:46 +00:00
SemaInit.cpp Fix PR20334: invalid assertion while diagnosing list initialization failure 2015-12-07 02:37:44 +00:00
SemaLambda.cpp Add the `pass_object_size` attribute to clang. 2015-12-02 21:58:08 +00:00
SemaLookup.cpp Replace [=] lambda capture with [&] per David Blaikieþ suggestion. 2015-11-24 20:18:24 +00:00
SemaObjCProperty.cpp Fix a comment typo from r251874. 2015-12-03 02:25:26 +00:00
SemaOpenMP.cpp [OPENMP 4.5] Parsing/sema support for 'omp taskloop simd' directive. 2015-12-03 09:40:15 +00:00
SemaOverload.cpp Add tests for `&enable_if_function` diagnostics. 2015-12-03 20:54:58 +00:00
SemaPseudoObject.cpp [MSVC] 'property' with an empty array in array subscript expression. 2015-11-25 12:01:00 +00:00
SemaStmt.cpp [OpenMP] Update target directive codegen to use 4.5 implicit data mappings. 2015-12-02 17:44:43 +00:00
SemaStmtAsm.cpp Use ArrayRef and MutableArrayRef instead of a pointer and size. NFC 2015-10-21 02:34:10 +00:00
SemaStmtAttr.cpp Add new llvm.loop.unroll.enable metadata for use with "#pragma unroll". 2015-08-10 17:29:39 +00:00
SemaTemplate.cpp Add the `pass_object_size` attribute to clang. 2015-12-02 21:58:08 +00:00
SemaTemplateDeduction.cpp [MS Compat] Adjust thiscall to cdecl when deducing template arguments 2015-11-30 20:34:28 +00:00
SemaTemplateInstantiate.cpp Revert r107690 (for PR7417) and add a testcase that it breaks. The approach of 2015-10-05 20:05:21 +00:00
SemaTemplateInstantiateDecl.cpp [Sema] Implement __make_integer_seq 2015-11-04 03:40:30 +00:00
SemaTemplateVariadic.cpp Add support for GCC's '__auto_type' extension, per the GCC manual: 2015-11-11 02:02:15 +00:00
SemaType.cpp Add the `pass_object_size` attribute to clang. 2015-12-02 21:58:08 +00:00
TreeTransform.h [OPENMP 4.5] Parsing/sema support for 'omp taskloop simd' directive. 2015-12-03 09:40:15 +00:00
TypeLocBuilder.cpp [C++11] Use 'nullptr'. Sema edition. 2014-05-26 06:22:03 +00:00
TypeLocBuilder.h Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). 2015-06-22 23:07:51 +00:00