mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 20:16:03 +01:00
libexpr: Use use-after-move in SampleStack::saveProfile()
This commit is contained in:
parent
452ec09fe0
commit
be1ade7373
1 changed files with 1 additions and 1 deletions
|
|
@ -324,7 +324,7 @@ void SampleStack::saveProfile()
|
||||||
std::visit([&](auto && info) { info.symbolize(state, os, posCache); }, pos);
|
std::visit([&](auto && info) { info.symbolize(state, os, posCache); }, pos);
|
||||||
}
|
}
|
||||||
os << " " << count;
|
os << " " << count;
|
||||||
writeLine(profileFd.get(), std::move(os).str());
|
writeLine(profileFd.get(), os.str());
|
||||||
/* Clear ostringstream. */
|
/* Clear ostringstream. */
|
||||||
os.str("");
|
os.str("");
|
||||||
os.clear();
|
os.clear();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue