Revert "[coroutines][PR40978] Emit error for co_yield within catch block"
authorBrian Gesiak <modocache@gmail.com>
Fri, 22 Mar 2019 16:08:29 +0000 (16:08 +0000)
committerBrian Gesiak <modocache@gmail.com>
Fri, 22 Mar 2019 16:08:29 +0000 (16:08 +0000)
commite8b3d63dd5bbd011306511a4ae1cdbd8e4915e5e
treeda2b81bd001eba70b8bdb601d3ce06263c24e0c0
parent4c2ef9a02be0562c48143b28bd239e8c42df6ce0
Revert "[coroutines][PR40978] Emit error for co_yield within catch block"

The commit https://reviews.llvm.org/rC356296 is causing a regression in nested
catch scopes, https://bugs.llvm.org/show_bug.cgi?id=41171. Revert this change
for now in order to un-break that problem report.

llvm-svn: 356774
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Sema/Scope.h
clang/lib/Parse/ParseStmt.cpp
clang/lib/Sema/Scope.cpp
clang/lib/Sema/SemaCoroutine.cpp
clang/test/SemaCXX/coroutines.cpp