diff options
author | Malcolm Parsons <malcolm.parsons@gmail.com> | 2017-12-11 18:00:36 +0000 |
---|---|---|
committer | Malcolm Parsons <malcolm.parsons@gmail.com> | 2017-12-11 18:00:36 +0000 |
commit | 84bf555dbe0c7836c8f67eea29a7cc9390b897bf (patch) | |
tree | e7c5e83fcf7e078e39a66a7fb43b5d8e69d3b1b1 /lib/Frontend/CompilerInvocation.cpp | |
parent | 20a630420df42944fa7676747f31973bf2021783 (diff) | |
download | clang-84bf555dbe0c7836c8f67eea29a7cc9390b897bf.tar.gz |
[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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@320396 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions