diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-05-17 12:01:52 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-05-17 12:01:52 +0000 |
commit | 268efba18e171d47e847ccdf313498905c32acfa (patch) | |
tree | be8e0bc399402e38ee7947f8ffaf94d0cbd28416 /lib/Parse/ParseCXXInlineMethods.cpp | |
parent | f291d8ce8af99d040d3ff2b071acf182a6820b62 (diff) |
CXXThisScopeRAII objects aren't free, don't compute one if it's unused.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156987 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseCXXInlineMethods.cpp')
-rw-r--r-- | lib/Parse/ParseCXXInlineMethods.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/ParseCXXInlineMethods.cpp b/lib/Parse/ParseCXXInlineMethods.cpp index 2a64be53f7..d623abcff9 100644 --- a/lib/Parse/ParseCXXInlineMethods.cpp +++ b/lib/Parse/ParseCXXInlineMethods.cpp @@ -459,7 +459,7 @@ void Parser::ParseLexedMemberInitializers(ParsingClass &Class) { Actions.ActOnStartDelayedMemberDeclarations(getCurScope(), Class.TagOrTemplate); - { + if (!Class.LateParsedDeclarations.empty()) { // C++11 [expr.prim.general]p4: // Otherwise, if a member-declarator declares a non-static data member // (9.2) of a class X, the expression this is a prvalue of type "pointer |