From 49037fcd81e828b4c32db0ea6ebbd2158c6a8cd6 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 27 Oct 2015 07:47:45 +0000 Subject: [PATCH] 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 --- lib/Sema/ScopeInfo.cpp | 1 + 1 file changed, 1 insertion(+) 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(); -- 2.40.0