llvm-project/clang/lib
Alexander Kornienko ff2046a93e CFGBuilder: Fix crash when visiting a range-based for over a dependent type
Summary:
CFG generation is expected to fail in this case, but it should not crash.

Also added a test that reproduces the crash.

Reviewers: klimek

Subscribers: cfe-commits

Patch by Martin Boehme!

Differential Revision: http://reviews.llvm.org/D21895

llvm-svn: 274834
2016-07-08 10:50:51 +00:00
..
ARCMigrate Apply clang-tidy's misc-move-constructor-init throughout Clang. 2016-05-27 14:27:13 +00:00
AST [AST] Use ArrayRef in more interfaces 2016-07-07 04:43:07 +00:00
ASTMatchers Add AST matchers for handling bit-fields and narrowing based on their width. 2016-07-06 18:25:16 +00:00
Analysis CFGBuilder: Fix crash when visiting a range-based for over a dependent type 2016-07-08 10:50:51 +00:00
Basic Update switch statement to match coding standards. 2016-07-07 22:32:26 +00:00
CodeGen [CodeGen] Use llvm::Type::getVectorNumElements instead of casting to llvm::VectorType and calling getNumElements. This is equivalent and shorter. 2016-07-08 02:17:35 +00:00
Driver Revert "Driver: Stop linking to C++ when using sanitizers on Darwin" 2016-07-08 00:37:31 +00:00
Edit Remove autoconf support 2016-01-26 21:30:40 +00:00
Format clang-format: [JS] Fix build breakage. 2016-06-24 17:45:13 +00:00
Frontend Use arrays or initializer lists to feed ArrayRefs instead of SmallVector where possible. 2016-07-02 11:41:41 +00:00
FrontendTool Make it possible for AST plugins to enable themselves by default 2016-03-15 12:51:40 +00:00
Headers NVPTX: Use the nvvm builtins to read SRegs rather than the legacy ptx ones 2016-07-07 16:41:08 +00:00
Index Use more ArrayRefs 2016-06-24 04:05:48 +00:00
Lex [Lex] Speed up updateConsecutiveMacroArgTokens (NFC) 2016-07-07 22:38:29 +00:00
Parse [OpenMP] Sema and parsing for 'distribute simd' pragma 2016-07-06 04:45:38 +00:00
Rewrite Remove use of builtin comma operator. 2016-02-18 22:34:54 +00:00
Sema [X86] Remove dead builtins that don't exist in the backend intrinsic file and don't have custom handling in CGBuiltins.cpp either. 2016-07-08 05:11:47 +00:00
Serialization [AST] Use ArrayRef in more interfaces 2016-07-07 04:43:07 +00:00
StaticAnalyzer [analyzer] Add rudimentary handling of AtomicExpr. 2016-07-08 00:53:18 +00:00
Tooling [AST] Use ArrayRef in more interfaces 2016-07-07 04:43:07 +00:00
CMakeLists.txt Fix build with various feature flag combinations 2014-07-14 22:17:22 +00:00