| commit | b34d0ef2caa6beb1a1005e55f8855c8d8080f4c4 | [log] [tgz] |
|---|---|---|
| author | Tim Shen <timshen91@gmail.com> | Tue Feb 14 23:46:37 2017 +0000 |
| committer | Tim Shen <timshen91@gmail.com> | Tue Feb 14 23:46:37 2017 +0000 |
| tree | add4b50c3ae0c30db8f7d4c79a680b53de29f634 | |
| parent | 222b30b9d39cce262f9e97559313ea593dc73a8e [diff] |
[VLA] Handle VLA size expression in a full-expression context. Summary: Previously the cleanups (e.g. dtor calls) are inserted into the outer scope (e.g. function body scope), instead of it's own scope. After the fix, the cleanups are inserted right after getting the size value. This fixes pr30306. Reviewers: rsmith Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D24333 llvm-svn: 295123