OSDN Git Service

[AST] Update LVal before evaluating lambda decl fields.
authorZequan Wu <zequanwu@google.com>
Fri, 5 Feb 2021 01:00:09 +0000 (17:00 -0800)
committerRichard Smith <richard@metafoo.co.uk>
Mon, 8 Feb 2021 23:31:53 +0000 (15:31 -0800)
commitc9fb4a947e32abfaa73b0b91a58ef71c73316322
treeb63a2de112a59bf5e3b787ed10f1d364a1883eec
parent1cb6551edb94eea1fc087b346b1e8d13775dc692
[AST] Update LVal before evaluating lambda decl fields.

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

(cherry picked from commit 96fb49c3ff8e08680127ddd4ec45a0e6c199243b)
clang/lib/AST/ExprConstant.cpp
clang/test/SemaCXX/constant-expression-cxx2a.cpp