diff --git a/llvm/unittests/ProfileData/InstrProfTest.cpp b/llvm/unittests/ProfileData/InstrProfTest.cpp --- a/llvm/unittests/ProfileData/InstrProfTest.cpp +++ b/llvm/unittests/ProfileData/InstrProfTest.cpp @@ -249,7 +249,7 @@ SmallTrace.FunctionNameRefs = {IndexedInstrProf::ComputeHash("foo"), IndexedInstrProf::ComputeHash("bar")}; - SmallVector Traces = {LargeTrace, SmallTrace}; + SmallVector Traces = {LargeTrace, SmallTrace}; Writer.addTemporalProfileTraces(Traces, 2); auto Profile = Writer.writeBuffer(); @@ -275,7 +275,7 @@ FooTrace.FunctionNameRefs = {IndexedInstrProf::ComputeHash("foo")}; BarTrace.FunctionNameRefs = {IndexedInstrProf::ComputeHash("bar")}; - SmallVector Traces1({FooTrace}), Traces2({BarTrace}); + SmallVector Traces1({FooTrace}), Traces2({BarTrace}); Writer.addTemporalProfileTraces(Traces1, 1); Writer2.addTemporalProfileTraces(Traces2, 1); Writer.mergeRecordsFromWriter(std::move(Writer2), Err); @@ -302,10 +302,11 @@ GooTrace.FunctionNameRefs = {IndexedInstrProf::ComputeHash("Goo")}; // Add some sampled traces - SmallVector SampledTraces = {FooTrace, BarTrace, GooTrace}; + SmallVector SampledTraces = {FooTrace, BarTrace, + GooTrace}; Writer.addTemporalProfileTraces(SampledTraces, 5); // Add some unsampled traces - SmallVector UnsampledTraces = {BarTrace, GooTrace}; + SmallVector UnsampledTraces = {BarTrace, GooTrace}; Writer.addTemporalProfileTraces(UnsampledTraces, 2); UnsampledTraces = {FooTrace}; Writer.addTemporalProfileTraces(UnsampledTraces, 1);