From dcd04d1b5be5b265f5f927b9c51a4e62d9d0ae07 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 27 Oct 2015 07:47:45 +0000 Subject: Properly clear current coroutine promise on FunctionScopeInfo reuse. Should hopefully make bots happy again. llvm-svn: 251397 --- clang/lib/Sema/ScopeInfo.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang') diff --git a/clang/lib/Sema/ScopeInfo.cpp b/clang/lib/Sema/ScopeInfo.cpp index 6a400a2efe5..cbd7ef7abb4 100644 --- a/clang/lib/Sema/ScopeInfo.cpp +++ b/clang/lib/Sema/ScopeInfo.cpp @@ -39,6 +39,7 @@ void FunctionScopeInfo::Clear() { SwitchStack.clear(); Returns.clear(); + CoroutinePromise = nullptr; CoroutineStmts.clear(); ErrorTrap.reset(); PossiblyUnreachableDiags.clear(); -- cgit v1.2.3