]> granicus.if.org Git - clang/commitdiff
Properly clear current coroutine promise on FunctionScopeInfo reuse. Should
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 27 Oct 2015 07:47:45 +0000 (07:47 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 27 Oct 2015 07:47:45 +0000 (07:47 +0000)
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

index 6a400a2efe5a1ed1f467da69dc40b4fbe4d2b650..cbd7ef7abb4190bd46ac1ee9c11cfde11e77228e 100644 (file)
@@ -39,6 +39,7 @@ void FunctionScopeInfo::Clear() {
 
   SwitchStack.clear();
   Returns.clear();
+  CoroutinePromise = nullptr;
   CoroutineStmts.clear();
   ErrorTrap.reset();
   PossiblyUnreachableDiags.clear();