diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-01-12 02:27:38 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-01-12 02:27:38 +0000 |
| commit | 3beb7c6b5f5fa67df5593ca2357083daed0faa27 (patch) | |
| tree | 08c2a2a0f4d1923c6748c501e5b0bfa00dfd5f18 /clang/lib/Parse/ParseExprCXX.cpp | |
| parent | 9700acba116563175c45498043aa7eccef4e5cdc (diff) | |
| download | bcm5719-llvm-3beb7c6b5f5fa67df5593ca2357083daed0faa27.tar.gz bcm5719-llvm-3beb7c6b5f5fa67df5593ca2357083daed0faa27.zip | |
Remove redundant passing around of a "ContainsAutoType" flag.
This flag serves no purpose other than to prevent us walking through a type to
check whether it contains an 'auto' specifier; this duplication of information
is error-prone, does not appear to provide any performance benefit, and will
become less practical once we support C++1z deduced class template types and
eventually constrained types from the Concepts TS.
No functionality change intended.
llvm-svn: 291737
Diffstat (limited to 'clang/lib/Parse/ParseExprCXX.cpp')
| -rw-r--r-- | clang/lib/Parse/ParseExprCXX.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseExprCXX.cpp b/clang/lib/Parse/ParseExprCXX.cpp index 545ab36c133..124266a42bd 100644 --- a/clang/lib/Parse/ParseExprCXX.cpp +++ b/clang/lib/Parse/ParseExprCXX.cpp @@ -1818,8 +1818,7 @@ Sema::ConditionResult Parser::ParseCXXCondition(StmtResult *InitStmt, } if (!InitExpr.isInvalid()) - Actions.AddInitializerToDecl(DeclOut, InitExpr.get(), !CopyInitialization, - DS.containsPlaceholderType()); + Actions.AddInitializerToDecl(DeclOut, InitExpr.get(), !CopyInitialization); else Actions.ActOnInitializerError(DeclOut); |

