hanchenye-llvm-project/clang/lib/Analysis
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
..
AnalysisDeclContext.cpp [analyzer] Use BodyFarm-synthesized body even when actual body available. 2016-03-28 23:55:58 +00:00
BodyFarm.cpp Implement p0292r2 (constexpr if), a likely C++1z feature. 2016-06-23 19:16:49 +00:00
BodyFarm.h Make headers self-contained. 2016-02-02 11:06:57 +00:00
CFG.cpp CFGBuilder: Fix crash when visiting a range-based for over a dependent type 2016-07-08 10:50:51 +00:00
CFGReachabilityAnalysis.cpp
CFGStmtMap.cpp
CMakeLists.txt
CallGraph.cpp Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 19:38:18 +00:00
CocoaConventions.cpp Allow the cf_returns_[not_]retained attributes to appear on out-parameters. 2015-06-19 23:17:46 +00:00
CodeInjector.cpp Roll-back r250822. 2015-10-20 13:23:58 +00:00
Consumed.cpp Use more ArrayRefs 2016-06-24 04:05:48 +00:00
Dominators.cpp
FormatString.cpp Check 'r' and 'y specifiers of freebsd_kernel_printf format strings on PS4 2016-04-26 23:19:00 +00:00
FormatStringParsing.h [Sema] Handle UTF-8 invalid format string specifiers 2016-03-29 17:35:02 +00:00
LiveVariables.cpp Rewrite users of Stmt::child_begin/end into for-range loops. 2015-07-03 15:12:24 +00:00
ObjCNoReturn.cpp
PostOrderCFGView.cpp
PrintfFormatString.cpp Enable support for __float128 in Clang and enable it on pertinent platforms 2016-05-09 08:52:33 +00:00
ProgramPoint.cpp Roll-back r250822. 2015-10-20 13:23:58 +00:00
PseudoConstantAnalysis.cpp Avoid overly large SmallPtrSet/SmallSet 2016-01-30 01:27:06 +00:00
ReachableCode.cpp Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). 2015-06-22 23:07:51 +00:00
ScanfFormatString.cpp [Sema] Handle UTF-8 invalid format string specifiers 2016-03-29 17:35:02 +00:00
ThreadSafety.cpp Thread Safety Analysis: Fix DenseMap iterator invalidation UAF 2015-11-20 19:08:30 +00:00
ThreadSafetyCommon.cpp [coroutines] Creation of promise object, lookup of operator co_await, building 2015-10-27 06:02:45 +00:00
ThreadSafetyLogical.cpp Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). 2015-06-22 23:07:51 +00:00
ThreadSafetyTIL.cpp
UninitializedValues.cpp Roll-back r250822. 2015-10-20 13:23:58 +00:00