Author: rsmith Date: Tue Oct 27 02:47:45 2015 New Revision: 251397 URL: http://llvm.org/viewvc/llvm-project?rev=251397&view=rev Log: Properly clear current coroutine promise on FunctionScopeInfo reuse. Should hopefully make bots happy again.
Modified: cfe/trunk/lib/Sema/ScopeInfo.cpp Modified: cfe/trunk/lib/Sema/ScopeInfo.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/ScopeInfo.cpp?rev=251397&r1=251396&r2=251397&view=diff ============================================================================== --- cfe/trunk/lib/Sema/ScopeInfo.cpp (original) +++ cfe/trunk/lib/Sema/ScopeInfo.cpp Tue Oct 27 02:47:45 2015 @@ -39,6 +39,7 @@ void FunctionScopeInfo::Clear() { SwitchStack.clear(); Returns.clear(); + CoroutinePromise = nullptr; CoroutineStmts.clear(); ErrorTrap.reset(); PossiblyUnreachableDiags.clear(); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits