-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[co_return] Translate co_return as return in the frontend
Summary: This diff translate the co_return as the normal return in the frontend, so that it can have an edge to the exit node. Reviewed By: jvillard Differential Revision: D65275166 fbshipit-source-id: 785b1a2493fafd27894bea56479bcc185a570a15
- Loading branch information
1 parent
02cc4c1
commit 9cd08c8
Showing
3 changed files
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
codetoanalyze/cpp/pulse-20/coro.cpp, coro::do_coroutine_stuff_then_npe_bad, 5, NULLPTR_DEREFERENCE, no_bucket, ERROR, [is assigned to the null pointer,assigned,invalid access occurs here] | ||
codetoanalyze/cpp/pulse-20/coro.cpp, coro::FP_do_coroutine_stuff_then_npe_unless_semantics_accurate_bad, 6, NULLPTR_DEREFERENCE, no_bucket, ERROR, [is assigned to the null pointer,assigned,invalid access occurs here] | ||
codetoanalyze/cpp/pulse-20/coro.cpp, coro::makeRequestToSink_bad, 2, TAINT_ERROR, no_bucket, ERROR, [source of the taint here: value returned from `coro::makeRequest` with kind `SimpleSource`,in call to function `__builtin_cxx_co_await` with no summary,when calling `coro::co_get_something` here,flows to this sink: value passed as argument `#0` to `coro::requestSink` with kind `SimpleSink`], source: coro::makeRequest, sink: coro::requestSink, tainted expression: request | ||
codetoanalyze/cpp/pulse-20/coro.cpp, coro::optional_co_return_ok_FP, 5, OPTIONAL_EMPTY_ACCESS, no_bucket, ERROR, [in call to `std::optional::optional(=nullopt)` (modelled),is assigned an empty value,invalid access occurs here] | ||
codetoanalyze/cpp/pulse-20/std_exchange.cpp, std_exchange_semantics_bad, 6, NULLPTR_DEREFERENCE, no_bucket, ERROR, [is assigned to the null pointer,assigned,invalid access occurs here] |