[AST] Don't track lambda captures when checking a potential constant expression.
authorErik Pilkington <erik.pilkington@gmail.com>
Thu, 5 Apr 2018 00:12:05 +0000 (00:12 +0000)
committerErik Pilkington <erik.pilkington@gmail.com>
Thu, 5 Apr 2018 00:12:05 +0000 (00:12 +0000)
commit11232912b11b15b91e1f10a8e7decd1fa14d21fc
treea9a25297e10a2d713e9ae3f3ab386f604533e40e
parent26c504fe1e066b9a263b8f7d124d0f0d3a30a715
[AST] Don't track lambda captures when checking a potential constant expression.

Fixes PR36054.

Differential revision: https://reviews.llvm.org/D45194

llvm-svn: 329244
clang/lib/AST/ExprConstant.cpp
clang/test/SemaCXX/cxx1z-constexpr-lambdas.cpp