]> granicus.if.org Git - clang/commit
Don't skip lambdas when mangling local vars.
authorEli Friedman <eli.friedman@gmail.com>
Tue, 2 Jul 2013 02:01:18 +0000 (02:01 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Tue, 2 Jul 2013 02:01:18 +0000 (02:01 +0000)
commit1cf7c3f8948b26395bc3293a657afb9f98878db7
tree59ffa554803ddc4a5b748814457f23ec1540e2cc
parentf4af9d37510320f5d9b415020440926528900eef
Don't skip lambdas when mangling local vars.

This commit rearranges the logic in CXXNameMangler::mangleLocalName and
GetLocalClassDecl so that it doesn't accidentally skip over lambdas.  It
also reduces code duplication a bit.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185402 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ItaniumMangle.cpp
test/CXX/expr/expr.prim/expr.prim.lambda/blocks-irgen.mm
test/CodeGenCXX/mangle-lambdas.cpp