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
Differential D41016
[Sema] Fix crash in unused-lambda-capture warning for VLAs malcolm.parsons on Dec 8 2017, 8:55 AM. Authored by
Details Clang was crashing when diagnosing an unused-lambda-capture for a VLA because Fixes: PR35555
Diff Detail
Event TimelineComment Actions For the rest, LGTM. It fixes the segfault, for both the full original test case, and my reduced version.
|