[AST] Mangle LambdaContextDecl for top level decl
authorZequan Wu <zequanwu@google.com>
Wed, 10 Jun 2020 16:37:58 +0000 (09:37 -0700)
committerZequan Wu <zequanwu@google.com>
Wed, 10 Jun 2020 16:44:09 +0000 (09:44 -0700)
commite408cba84f8a9471bb26deca8d9aac049a924847
tree1f1c0c4a0aeeddd1a8bd18ea1e1d058df250dfe6
parentd9a42ec98adcb1ebc0c3837715df4e5a50c7ccc0
[AST] Mangle LambdaContextDecl for top level decl

Summary:

Bug filed here: https://bugs.llvm.org/show_bug.cgi?id=45213

To resolve it, we let the checks for mangling LambdaContextDecl to be analogous to ItaniumMangle strategy: https://github.com/llvm/llvm-project/blob/master/clang/lib/AST/ItaniumMangle.cpp#L1829

Differential Revision: https://reviews.llvm.org/D80153
clang/lib/AST/MicrosoftMangle.cpp
clang/test/CodeGenCXX/mangle-ms-cxx17.cpp