summaryrefslogtreecommitdiffstats
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
commitdcd04d1b5be5b265f5f927b9c51a4e62d9d0ae07 (patch)
tree12efae0712362bd82260ab82e7c2c2b51ca92df7
parentd749f235eddda4290520667ecd00a24a24d1fdfa (diff)
downloadbcm5719-llvm-dcd04d1b5be5b265f5f927b9c51a4e62d9d0ae07.tar.gz
bcm5719-llvm-dcd04d1b5be5b265f5f927b9c51a4e62d9d0ae07.zip
Properly clear current coroutine promise on FunctionScopeInfo reuse. Should
hopefully make bots happy again. llvm-svn: 251397
-rw-r--r--clang/lib/Sema/ScopeInfo.cpp1
1 files changed, 1 insertions, 0 deletions
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();
OpenPOWER on IntegriCloud