llvm-project/clang/lib
Bruno Ricci ed414847bc [Sema] Don't try to account for the size of an incomplete type in CheckArrayAccess
When checking that the array access is not out-of-bounds in CheckArrayAccess
it is possible that the type of the base expression after IgnoreParenCasts is
incomplete, even though the type of the base expression before IgnoreParenCasts
is complete. In this case we have no information about whether the array access
is out-of-bounds and we should just bail-out instead. This fixes PR39746 which
was caused by trying to obtain the size of an incomplete type.

Differential Revision: https://reviews.llvm.org/D55862

Reviewed By: efriedma

llvm-svn: 349811
2018-12-20 20:05:11 +00:00
..
ARCMigrate Misc typos fixes in ./lib folder 2018-12-10 12:37:46 +00:00
AST [Sema] Better static assert diagnostics for expressions involving temporaries/casts/.... 2018-12-20 09:05:15 +00:00
ASTMatchers [ASTImporter] Fix redecl chain of classes and class templates 2018-12-17 12:42:12 +00:00
Analysis [analyzer] Fix some expressions staying live too long. Add a debug checker. 2018-12-16 23:44:06 +00:00
Basic Replace getOS() == llvm::Triple::*BSD with isOS*BSD() [NFCI] 2018-12-20 13:09:30 +00:00
CodeGen [X86] Auto upgrade XOP/AVX512 rotation intrinsics to generic funnel shift intrinsics (clang) 2018-12-20 19:01:13 +00:00
CrossTU [ASTImporter] Add importer specific lookup 2018-12-17 13:53:12 +00:00
Driver [Driver] Fix accidentally reversed condition in r349752 2018-12-20 13:27:37 +00:00
Edit [Fixed Point Arithmetic] Fixed Point to Boolean Cast 2018-10-23 17:55:35 +00:00
Format [clang-format] Do not treat asm clobber [ as ObjCExpr, refined 2018-11-22 14:49:55 +00:00
Frontend Automatic variable initialization 2018-12-18 05:12:21 +00:00
FrontendTool [analyzer][NFC] Merge ClangCheckerRegistry to CheckerRegistry 2018-12-15 18:11:49 +00:00
Headers [SystemZ] Fix wrong codegen caused by typos in vecintrin.h 2018-12-20 13:09:09 +00:00
Index [Index] Index paremeters in lambda expressions. 2018-12-19 13:44:41 +00:00
Lex Misc typos fixes in ./lib folder 2018-12-10 12:37:46 +00:00
Parse [OPENMP] parsing and sema support for 'close' map-type-modifier 2018-12-18 22:18:41 +00:00
Rewrite Misc typos fixes in ./lib folder 2018-12-10 12:37:46 +00:00
Sema [Sema] Don't try to account for the size of an incomplete type in CheckArrayAccess 2018-12-20 20:05:11 +00:00
Serialization [OPENMP] parsing and sema support for 'close' map-type-modifier 2018-12-18 22:18:41 +00:00
StaticAnalyzer Revert "[analyzer] pr38668: Do not attempt to cast loaded values..." 2018-12-20 19:36:06 +00:00
Tooling PR40096: Forwards-compatible with C++20 rule regarding aggregates not having user-declared ctors 2018-12-19 19:33:35 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00