[llvm] r269199 - Use an emplace_back for consistency, NFC
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Wed May 11 09:03:02 PDT 2016
Author: vedantk
Date: Wed May 11 11:03:02 2016
New Revision: 269199
URL: http://llvm.org/viewvc/llvm-project?rev=269199&view=rev
Log:
Use an emplace_back for consistency, NFC
Modified:
llvm/trunk/lib/ProfileData/InstrProf.cpp
Modified: llvm/trunk/lib/ProfileData/InstrProf.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ProfileData/InstrProf.cpp?rev=269199&r1=269198&r2=269199&view=diff
==============================================================================
--- llvm/trunk/lib/ProfileData/InstrProf.cpp (original)
+++ llvm/trunk/lib/ProfileData/InstrProf.cpp Wed May 11 11:03:02 2016
@@ -428,7 +428,7 @@ void InstrProfRecord::addValueData(uint3
std::vector<InstrProfValueSiteRecord> &ValueSites =
getValueSitesForKind(ValueKind);
if (N == 0)
- ValueSites.push_back(InstrProfValueSiteRecord());
+ ValueSites.emplace_back();
else
ValueSites.emplace_back(VData, VData + N);
}
More information about the llvm-commits
mailing list