HomePhabricator

[analyzer] Fix crash when lambda captures a variable-length array.

Authored by dcoughlin on Dec 7 2015, 3:01 PM.

Description

[analyzer] Fix crash when lambda captures a variable-length array.

When a C++ lambda captures a variable-length array, it creates a capture
field to store the size of the array. The initialization expression for this
capture is null, which led the analyzer to crash when initializing the field.
To avoid this, use the size expression from the VLA type to determine the
initialization value.

rdar://problem/23748072

llvm-svn: 254962

Details

Committed
dcoughlinDec 7 2015, 3:01 PM
Parents
rGaf89de9d66d8: Add llvm-objdump to compiler-rt test deps.
Branches
Unknown
Tags
Unknown