OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f633af
)
[XRay] Use explicit string conversion
author
Dean Michael Berris
<dberris@google.com>
Wed, 7 Nov 2018 11:44:00 +0000
(11:44 +0000)
committer
Dean Michael Berris
<dberris@google.com>
Wed, 7 Nov 2018 11:44:00 +0000
(11:44 +0000)
Instead of using std::copy(...), use a conversion to string instead from
StringRef to std::string.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346304
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/XRay/FDRTraceExpander.cpp
patch
|
blob
|
history
diff --git
a/lib/XRay/FDRTraceExpander.cpp
b/lib/XRay/FDRTraceExpander.cpp
index
e67f4b5
..
6fe3f86
100644
(file)
--- a/
lib/XRay/FDRTraceExpander.cpp
+++ b/
lib/XRay/FDRTraceExpander.cpp
@@
-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();