Move the computation of the lambda mangling information (mangling
number + context) to the point where we initially start defining the lambda, so that the linkage won't change when that information is made available. Fixes the assertion in <rdar://problem/11182962>. Plus, actually mangle the context of lambdas properly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154029 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/AST/DeclCXX.h 8 additions, 1 deletioninclude/clang/AST/DeclCXX.h
- include/clang/AST/ExprCXX.h 2 additions, 6 deletionsinclude/clang/AST/ExprCXX.h
- include/clang/Sema/Sema.h 4 additions, 4 deletionsinclude/clang/Sema/Sema.h
- lib/AST/ExprCXX.cpp 3 additions, 12 deletionslib/AST/ExprCXX.cpp
- lib/AST/ItaniumMangle.cpp 11 additions, 1 deletionlib/AST/ItaniumMangle.cpp
- lib/Sema/SemaLambda.cpp 78 additions, 78 deletionslib/Sema/SemaLambda.cpp
- lib/Sema/TreeTransform.h 8 additions, 9 deletionslib/Sema/TreeTransform.h
- test/CodeGenCXX/mangle-lambdas.cpp 16 additions, 0 deletionstest/CodeGenCXX/mangle-lambdas.cpp
Loading
Please register or sign in to comment