summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-05-28 18:21:12 +0000
committerEric Fiselier <eric@efcs.ca>2017-05-28 18:21:12 +0000
commitd978e53c6d70822e3a668623bb2a3630d5a51cc2 (patch)
treea3c3f30bf5d17316b8785bc9c5d7e9684ca9a0b0 /lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp
parent5a4ec2146154276f9497936cd82b620c47e1c739 (diff)
downloadbcm5719-llvm-d978e53c6d70822e3a668623bb2a3630d5a51cc2.tar.gz
bcm5719-llvm-d978e53c6d70822e3a668623bb2a3630d5a51cc2.zip
[coroutines] Diagnose invalid result types for `await_resume` and `await_suspend` and add missing conversions.
Summary: The expression `await_ready` is required to be contextually convertible to bool and `await_suspend` must be a prvalue of either `void` or `bool`. This patch adds diagnostics for when those requirements are violated. It also correctly performs the contextual conversion to bool on the result of `await_ready` Reviewers: GorNishanov, rsmith Reviewed By: GorNishanov Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D33625 llvm-svn: 304094
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud