]> granicus.if.org Git - clang/commit
Fix unused expression warning in co_await.
authorEric Fiselier <eric@efcs.ca>
Tue, 27 Mar 2018 00:58:16 +0000 (00:58 +0000)
committerEric Fiselier <eric@efcs.ca>
Tue, 27 Mar 2018 00:58:16 +0000 (00:58 +0000)
commit89a447876085951d814759cddcb744614e5b4499
treeca81f8b1620834783010cba4dce08388f240f1c6
parent7399966722d611906d9ce85ac8b28b141b12d18c
Fix unused expression warning in co_await.

Previously, anytime the result of the resume expression in
operator co_await was unused, a warning was generated. This
patch fixes the issue by only generating the unused result warning
if calling `await_resume()` would also generate a warning.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@328602 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Expr.cpp
test/SemaCXX/coroutines.cpp