From: Richard Smith Date: Tue, 27 Oct 2015 07:47:45 +0000 (+0000) Subject: Properly clear current coroutine promise on FunctionScopeInfo reuse. Should X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=49037fcd81e828b4c32db0ea6ebbd2158c6a8cd6;p=clang Properly clear current coroutine promise on FunctionScopeInfo reuse. Should hopefully make bots happy again. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@251397 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/ScopeInfo.cpp b/lib/Sema/ScopeInfo.cpp index 6a400a2efe..cbd7ef7abb 100644 --- a/lib/Sema/ScopeInfo.cpp +++ b/lib/Sema/ScopeInfo.cpp @@ -39,6 +39,7 @@ void FunctionScopeInfo::Clear() { SwitchStack.clear(); Returns.clear(); + CoroutinePromise = nullptr; CoroutineStmts.clear(); ErrorTrap.reset(); PossiblyUnreachableDiags.clear();