]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r326776:
authordim <dim@FreeBSD.org>
Tue, 19 Dec 2017 11:39:05 +0000 (11:39 +0000)
committerdim <dim@FreeBSD.org>
Tue, 19 Dec 2017 11:39:05 +0000 (11:39 +0000)
commitd9829aec9cfd6d34e3993203c495522ca778623c
tree91745bd0e69ea400089275e06b5bc4230035ea51
parent9a818689568203c2e93b5cc964ec497986f55147
MFC r326776:

Pull in r320396 from upstream clang trunk (by Malcolm Parsons):

  [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

This fixes a segfault when building recent audio/zynaddsubfx port
versions.

Reported by: hps
contrib/llvm/tools/clang/include/clang/Sema/ScopeInfo.h
contrib/llvm/tools/clang/lib/Sema/SemaLambda.cpp