[lldb] Use Optional::transform instead of Optional::map (NFC)

This commit is contained in:
Kazu Hirata 2022-08-19 21:40:47 -07:00
parent fbebf0f6de
commit 2b46625516
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ Expected<IntelPTSingleBufferTrace> IntelPTSingleBufferTrace::Start(
(request.ipt_trace_size + page_size - 1) / page_size));
Expected<perf_event_attr> attr = CreateIntelPTPerfEventConfiguration(
request.enable_tsc, request.psb_period.map([](int value) {
request.enable_tsc, request.psb_period.transform([](int value) {
return static_cast<uint64_t>(value);
}));
if (!attr)