llvm-project/clang/lib
Malcolm Parsons d900a0c4e2 [Sema] Fix crash in unused-lambda-capture warning for VLAs
Summary:
Clang was crashing when diagnosing an unused-lambda-capture for a VLA because
From.getVariable() is null for the capture of a VLA bound.
Warning about the VLA bound capture is not helpful, so only warn for the VLA
itself.

Fixes: PR35555

Reviewers: aaron.ballman, dim, rsmith

Reviewed By: aaron.ballman, dim

Subscribers: cfe-commits

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

llvm-svn: 320396
2017-12-11 18:00:36 +00:00
..
ARCMigrate Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. 2017-06-03 06:23:19 +00:00
AST Revert r320230 to fix buildbots. 2017-12-09 03:02:21 +00:00
ASTMatchers Remove creation of out-of-bounds value of enumeration type (resulting in UB). 2017-12-08 23:29:59 +00:00
Analysis [Analysis] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-12-07 21:55:09 +00:00
Basic [mips] Minor update to the comment (NFC) 2017-12-11 12:12:16 +00:00
CodeGen Hardware-assisted AddressSanitizer (clang part). 2017-12-09 01:32:07 +00:00
CrossTU [CrossTU] Fix handling of Cross Translation Unit directory path 2017-10-27 12:53:37 +00:00
Driver For Linux/gnu compatibility, preinclude <stdc-predef.h> if the file is available 2017-12-11 17:36:42 +00:00
Edit [clang] Fix format specifiers fixits for nested macros 2017-06-20 20:46:58 +00:00
Format Now that C++17 is official (https://www.iso.org/standard/68564.html), start changing the C++1z terminology over to C++17. NFC intended, these are all mechanical changes. 2017-12-04 20:27:34 +00:00
Frontend For Linux/gnu compatibility, preinclude <stdc-predef.h> if the file is available 2017-12-11 17:36:42 +00:00
FrontendTool [CMake] Use #cmakedefine01 for CLANG_ENABLE_(ARCMT|OBJC_REWRITER|STATIC_ANALYZER) 2017-10-18 05:21:17 +00:00
Headers In stdbool.h, define bool, false, true only in gnu++98 2017-12-08 08:28:08 +00:00
Index [Index] Add setPreprocessor member to IndexDataConsumer. 2017-12-07 11:04:24 +00:00
Lex Hardware-assisted AddressSanitizer (clang part). 2017-12-09 01:32:07 +00:00
Parse Allow conditions to be decomposed with structured bindings 2017-12-07 07:03:15 +00:00
Rewrite [Analyzer] Add support for displaying cross-file diagnostic paths in HTML output 2017-08-03 18:12:22 +00:00
Sema [Sema] Fix crash in unused-lambda-capture warning for VLAs 2017-12-11 18:00:36 +00:00
Serialization Revert r320230 to fix buildbots. 2017-12-09 03:02:21 +00:00
StaticAnalyzer [analyzer] do not crash on cases where an array subscript is an rvalue 2017-12-05 21:19:59 +00:00
Tooling [Tooling] Acknowledge that many CompilationDatabases don't support enumeration. 2017-11-24 12:13:55 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00