Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 49037fc

Browse files
committed
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
1 parent 266830d commit 49037fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: lib/Sema/ScopeInfo.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ void FunctionScopeInfo::Clear() {
3939

4040
SwitchStack.clear();
4141
Returns.clear();
42+
CoroutinePromise = nullptr;
4243
CoroutineStmts.clear();
4344
ErrorTrap.reset();
4445
PossiblyUnreachableDiags.clear();

0 commit comments

Comments
 (0)