[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:
Dean Michael Berris 2018-11-07 11:44:00 +00:00
parent 0916a96483
commit 140e76a1aa
1 changed files with 1 additions and 2 deletions

View File

@ -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();