llvm-project/clang/lib
Devin Coughlin e69b043088 [analyzer] Refer to capture field to determine if capture is reference.
The analyzer incorrectly treats captures as references if either the original
captured variable is a reference or the variable is captured by reference.
This causes the analyzer to crash when capturing a reference type by copy
(PR24914). Fix this by refering solely to the capture field to determine when a
DeclRefExpr for a lambda capture should be treated as a reference type.

https://llvm.org/bugs/show_bug.cgi?id=24914
rdar://problem/23524412

llvm-svn: 253157
2015-11-15 03:07:17 +00:00
..
ARCMigrate Refactor: Simplify boolean conditional return statements in lib/ARCMigrate 2015-11-06 01:26:37 +00:00
AST [modules] Allow "redefinition" of typedef of anon tag from unimported submodule 2015-11-14 03:26:14 +00:00
ASTMatchers [AST] Re-add TypeLocs and NestedNameSpecifierLocs to the ParentMap. 2015-10-23 09:04:55 +00:00
Analysis CFG: Delay creating Dtors for CompoundStmts which end in ReturnStmt 2015-11-14 00:36:50 +00:00
Basic Cull non-standard variants of ARM architectures (NFC) 2015-11-12 15:52:02 +00:00
CodeGen Add support for the always_inline + target feature diagnostic to print 2015-11-14 02:38:37 +00:00
Driver Revert "[AArch64] Unconditionally pass subtarget feature reserve-x18 on Darwin." 2015-11-13 23:07:31 +00:00
Edit Replace double negation of !FileID.isInvalid() with FileID.isValid(). 2015-10-03 10:46:20 +00:00
Format Add support for GCC's '__auto_type' extension, per the GCC manual: 2015-11-11 02:02:15 +00:00
Frontend Revert r240335. 2015-11-12 21:55:58 +00:00
FrontendTool Provide a BuryPointer for unique_ptrs. 2014-08-29 16:53:14 +00:00
Headers [X86] Add 'pause' builtin that's already in llvm and use it instead of inline assembly to implement _mm_pause. 2015-11-11 08:13:33 +00:00
Index Roll-back r250822. 2015-10-20 13:23:58 +00:00
Lex Use %select to merge similar diagnostics. NFC 2015-11-14 02:09:55 +00:00
Parse Move diagnostics from Parse to Sema to remove Sema's dependency on ParserDiagnostic.h diagnostics. 2015-11-14 19:31:56 +00:00
Rewrite Roll-back r250822. 2015-10-20 13:23:58 +00:00
Sema [Sema] Don't crash trying to diagnose abs called on a pointer type 2015-11-15 03:04:34 +00:00
Serialization Add support for GCC's '__auto_type' extension, per the GCC manual: 2015-11-11 02:02:15 +00:00
StaticAnalyzer [analyzer] Refer to capture field to determine if capture is reference. 2015-11-15 03:07:17 +00:00
Tooling Make ArgumentAdjuster aware of the current file being processed. 2015-11-05 02:19:53 +00:00
CMakeLists.txt Fix build with various feature flag combinations 2014-07-14 22:17:22 +00:00
Makefile Make clang's rewrite engine a core feature 2014-07-16 16:48:33 +00:00