[memprof] Use a lambda instead of std::bind (NFC) (#144940)
A lambda is a lot shorter than std::bind here.
This commit is contained in:
parent
3b672e1d7b
commit
03692aa404
@ -62,8 +62,7 @@ public:
|
||||
return make_error<InstrProfError>(instrprof_error::eof);
|
||||
|
||||
if (Callback == nullptr)
|
||||
Callback =
|
||||
std::bind(&MemProfReader::idToFrame, this, std::placeholders::_1);
|
||||
Callback = [&](FrameId Id) { return idToFrame(Id); };
|
||||
|
||||
CallStackIdConverter<decltype(MemProfData.CallStacks)> CSIdConv(
|
||||
MemProfData.CallStacks, Callback);
|
||||
|
Loading…
x
Reference in New Issue
Block a user