summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseCXXInlineMethods.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-02-21 02:22:07 +0000
committerDouglas Gregor <dgregor@apple.com>2012-02-21 02:22:07 +0000
commit926410d2db727c5093bda792cb8b2025d7f02cc3 (patch)
treef6d079eb498c82377a23722e4091dc34450004a3 /clang/lib/Parse/ParseCXXInlineMethods.cpp
parent7d445e92c3206ab312b385202a6c81c59fd9599c (diff)
downloadbcm5719-llvm-926410d2db727c5093bda792cb8b2025d7f02cc3.tar.gz
bcm5719-llvm-926410d2db727c5093bda792cb8b2025d7f02cc3.zip
Implement name mangling for lambda expressions that occur within the
initializers of data members (both static and non-static). llvm-svn: 151017
Diffstat (limited to 'clang/lib/Parse/ParseCXXInlineMethods.cpp')
-rw-r--r--clang/lib/Parse/ParseCXXInlineMethods.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseCXXInlineMethods.cpp b/clang/lib/Parse/ParseCXXInlineMethods.cpp
index 8ed058787e4..1294a4c79aa 100644
--- a/clang/lib/Parse/ParseCXXInlineMethods.cpp
+++ b/clang/lib/Parse/ParseCXXInlineMethods.cpp
@@ -478,7 +478,8 @@ void Parser::ParseLexedMemberInitializer(LateParsedMemberInitializer &MI) {
ConsumeAnyToken();
SourceLocation EqualLoc;
- ExprResult Init = ParseCXXMemberInitializer(/*IsFunction=*/false, EqualLoc);
+ ExprResult Init = ParseCXXMemberInitializer(MI.Field, /*IsFunction=*/false,
+ EqualLoc);
Actions.ActOnCXXInClassMemberInitializer(MI.Field, EqualLoc, Init.release());
OpenPOWER on IntegriCloud