]> granicus.if.org Git - clang/commit
Use BuildReturnStmt in SemaCoroutine to unbreak sanitizer tests.
authorGor Nishanov <GorNishanov@gmail.com>
Tue, 28 Mar 2017 02:51:45 +0000 (02:51 +0000)
committerGor Nishanov <GorNishanov@gmail.com>
Tue, 28 Mar 2017 02:51:45 +0000 (02:51 +0000)
commit0be968dcdac3922f1cc4660593782d15015fb4ff
treeef8bbc599c122f1ee39fe2c05004a0c549a4b424
parent0bccfd904f6eb4b3a2fc79345f22e40d93109412
Use BuildReturnStmt in SemaCoroutine to unbreak sanitizer tests.

FIXME: ActOnReturnStmt expects a scope that is inside of the function, due
  to CheckJumpOutOfSEHFinally(*this, ReturnLoc, *CurScope->getFnParent());
  S.getCurScope()->getFnParent() == nullptr at ActOnFinishFunctionBody when
  CoroutineBodyStmt is built. Figure it out and fix it.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@298893 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaCoroutine.cpp