[XRay] initialize all members of YAMLXRayRecord for -Wmissing-field-initializers

llvm-svn: 314278
This commit is contained in:
Martin Pelikan 2017-09-27 07:30:48 +00:00
parent 86b1b509f0
commit cc817b4cbb

View File

@ -508,7 +508,7 @@ Error loadYAMLLog(StringRef Data, XRayFileHeader &FileHeader,
std::transform(Trace.Records.begin(), Trace.Records.end(), std::transform(Trace.Records.begin(), Trace.Records.end(),
std::back_inserter(Records), [&](const YAMLXRayRecord &R) { std::back_inserter(Records), [&](const YAMLXRayRecord &R) {
return XRayRecord{R.RecordType, R.CPU, R.Type, return XRayRecord{R.RecordType, R.CPU, R.Type,
R.FuncId, R.TSC, R.TId}; R.FuncId, R.TSC, R.TId, R.CallArgs};
}); });
return Error::success(); return Error::success();
} }