llvm-project/clang/lib
Kristof Umann 09ce8ec78a [analyzer] Avoid unnecessary enum range check on LValueToRValue casts
Summary: EnumCastOutOfRangeChecker should not perform enum range checks on LValueToRValue casts, since this type of cast does not actually change the underlying type.   Performing the unnecessary check actually triggered an assertion failure deeper in EnumCastOutOfRange for certain input (which is captured in the accompanying test code).

Reviewers: #clang, Szelethus, gamesh411, NoQ

Reviewed By: Szelethus, gamesh411, NoQ

Subscribers: NoQ, gamesh411, xazax.hun, baloghadamsoftware, szepet, a.sidorin, mikhail.ramalho, donat.nagy, dkrupp, Charusso, bjope, cfe-commits

Tags: #clang

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

llvm-svn: 369760
2019-08-23 14:21:13 +00:00
..
ARCMigrate [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
AST [ASTImporter] Import ctor initializers after setting flags. 2019-08-16 12:10:03 +00:00
ASTMatchers [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
Analysis [clang] Use the new Regex::isValid() with no parameter 2019-08-20 16:07:31 +00:00
Basic Introduce FileEntryRef and use it when handling includes to report correct dependencies 2019-08-22 18:15:50 +00:00
CodeGen [Clang][CodeGen] set alias linkage on QualType 2019-08-22 20:47:12 +00:00
CrossTU [CrossTU] Fix problem with CrossTU AST load limit and progress messages. 2019-08-12 07:15:29 +00:00
DirectoryWatcher [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
Driver [clang][ifs] Dropping older experimental interface stub formats. 2019-08-22 23:44:34 +00:00
Edit [C++2a] Add __builtin_bit_cast, used to implement std::bit_cast 2019-07-02 18:28:13 +00:00
Format clang-format: Disable across-block include reordering. 2019-08-23 14:04:09 +00:00
Frontend [clang][ifs] Dropping older experimental interface stub formats. 2019-08-22 23:44:34 +00:00
FrontendTool [clang][ifs] Dropping older experimental interface stub formats. 2019-08-22 23:44:34 +00:00
Headers [OpenCL] Fix declaration of enqueue_marker 2019-08-22 11:18:59 +00:00
Index [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
Lex Introduce FileEntryRef and use it when handling includes to report correct dependencies 2019-08-22 18:15:50 +00:00
Parse [Attr] Support _attribute__ ((fallthrough)) 2019-08-20 17:16:49 +00:00
Rewrite [Rewrite][NFC] Add FIXMEs and tests for RemoveLineIfEmpty bug 2019-08-15 21:17:48 +00:00
Sema Revert "PR42587: diagnose unexpanded uses of a pack parameter of a generic" due to buildbot breakage. 2019-08-23 02:33:46 +00:00
Serialization Introduce FileEntryRef and use it when handling includes to report correct dependencies 2019-08-22 18:15:50 +00:00
StaticAnalyzer [analyzer] Avoid unnecessary enum range check on LValueToRValue casts 2019-08-23 14:21:13 +00:00
Tooling [Syntax] Added function to get macro expansion tokens to TokenBuffer. 2019-08-20 13:34:01 +00:00
CMakeLists.txt Reland [clang] DirectoryWatcher 2019-07-12 20:34:10 +00:00