Commit Graph

3 Commits

Author SHA1 Message Date
Reid Kleckner 4abb9733da Relax assumption about default method calling convention in new test
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342281 91177308-0d34-0410-b5e6-96231b3b80d8
2018-09-14 20:50:39 +00:00
Vedant Kumar 1a5ee756dd Relax alignment assumptions in a test after r342194
Don't hardcode align 8.

Fixes a bot failure:
http://lab.llvm.org:8011/builders/clang-cmake-armv8-full/builds/6373

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342196 91177308-0d34-0410-b5e6-96231b3b80d8
2018-09-14 00:16:37 +00:00
Vedant Kumar d4e462f654 [Sema] Remove location from implicit capture init expr
A lambda's closure is initialized when the lambda is declared. For
implicit captures, the initialization code emitted from EmitLambdaExpr
references source locations *within the lambda body* in the function
containing the lambda. This results in a poor debugging experience: we
step to the line containing the lambda, then into lambda, out again,
over and over, until every capture's field is initialized.

To improve stepping behavior, assign the starting location of the lambda
to expressions which initialize an implicit capture within it.

rdar://39807527

Differential Revision: https://reviews.llvm.org/D50927

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342194 91177308-0d34-0410-b5e6-96231b3b80d8
2018-09-13 23:28:25 +00:00