Do not keep a reference to a temporary

PiperOrigin-RevId: 321117444
Change-Id: If6951058fcd32fe638f9241bef79181d6785e9cf
This commit is contained in:
Christian Blichmann 2020-07-14 01:41:41 -07:00 committed by Copybara-Service
parent 1f1de9e229
commit b7d137721a

View File

@ -82,7 +82,7 @@ std::vector<std::string> Syscall::GetArgumentsDescription() const {
}
std::string Syscall::GetDescription() const {
const auto& arch = GetArchDescription(arch_);
const std::string arch = GetArchDescription(arch_);
const std::string args = absl::StrJoin(GetArgumentsDescription(), ", ");
return absl::StrFormat("%s %s [%d](%s) IP: %#x, STACK: %#x", arch, GetName(),
nr_, args, ip_, sp_);