mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[XRay] Use explicit string conversion
Instead of using std::copy(...), use a conversion to string instead from StringRef to std::string. llvm-svn: 346304
This commit is contained in:
parent
2fe686afa0
commit
e28c33d0fe
@ -45,8 +45,7 @@ Error TraceExpander::visit(CustomEventRecord &R) {
|
||||
CurrentRecord.PId = PID;
|
||||
CurrentRecord.TId = TID;
|
||||
CurrentRecord.Type = RecordTypes::CUSTOM_EVENT;
|
||||
std::copy(R.data().begin(), R.data().end(),
|
||||
std::back_inserter(CurrentRecord.Data));
|
||||
CurrentRecord.Data = R.data();
|
||||
BuildingRecord = true;
|
||||
}
|
||||
return Error::success();
|
||||
|
Loading…
x
Reference in New Issue
Block a user