summaryrefslogtreecommitdiffstats
path: root/lib/Sema/ScopeInfo.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-10-27 07:47:45 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-10-27 07:47:45 +0000
commit49037fcd81e828b4c32db0ea6ebbd2158c6a8cd6 (patch)
tree92edb20306aec03f8c7e2b3bb8bec9a0e8ca3f8b /lib/Sema/ScopeInfo.cpp
parent266830d97bcfd30233ab6d146ce26540c8a44f36 (diff)
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
Diffstat (limited to 'lib/Sema/ScopeInfo.cpp')
-rw-r--r--lib/Sema/ScopeInfo.cpp1
1 files changed, 1 insertions, 0 deletions
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();