Skip to content

Commit 891c4a0

Browse files
thejha-nogikh
authored andcommitted
executor: refactor execute_req parsing to use names for IPC flags
This makes it easier to figure out where the flags go by grepping for them by name. No functional change intended.
1 parent 1ff8826 commit 891c4a0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

executor/executor.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -864,11 +864,11 @@ void parse_execute(const execute_req& req)
864864
{
865865
request_id = req.id;
866866
request_type = req.type;
867-
flag_collect_signal = req.exec_flags & (1 << 0);
868-
flag_collect_cover = req.exec_flags & (1 << 1);
869-
flag_dedup_cover = req.exec_flags & (1 << 2);
870-
flag_comparisons = req.exec_flags & (1 << 3);
871-
flag_threaded = req.exec_flags & (1 << 4);
867+
flag_collect_signal = req.exec_flags & (uint64)rpc::ExecFlag::CollectSignal;
868+
flag_collect_cover = req.exec_flags & (uint64)rpc::ExecFlag::CollectCover;
869+
flag_dedup_cover = req.exec_flags & (uint64)rpc::ExecFlag::DedupCover;
870+
flag_comparisons = req.exec_flags & (uint64)rpc::ExecFlag::CollectComps;
871+
flag_threaded = req.exec_flags & (uint64)rpc::ExecFlag::Threaded;
872872
all_call_signal = req.all_call_signal;
873873
all_extra_signal = req.all_extra_signal;
874874

0 commit comments

Comments
 (0)