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/Sema/SemaCoroutine.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/Sema/SemaCoroutine.cpp')
-rw-r--r-- | clang/lib/Sema/SemaCoroutine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaCoroutine.cpp b/clang/lib/Sema/SemaCoroutine.cpp index f6115c1bee6..9814b4a84f2 100644 --- a/clang/lib/Sema/SemaCoroutine.cpp +++ b/clang/lib/Sema/SemaCoroutine.cpp @@ -187,7 +187,7 @@ static FunctionScopeInfo *checkCoroutineContext(Sema &S, SourceLocation Loc, S.Context.getTrivialTypeSourceInfo(T, Loc), SC_None); S.CheckVariableDeclarationType(ScopeInfo->CoroutinePromise); if (!ScopeInfo->CoroutinePromise->isInvalidDecl()) - S.ActOnUninitializedDecl(ScopeInfo->CoroutinePromise, false); + S.ActOnUninitializedDecl(ScopeInfo->CoroutinePromise); } return ScopeInfo; |