diff options
author | Vedant Kumar <vsk@apple.com> | 2016-05-11 16:03:02 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-05-11 16:03:02 +0000 |
commit | 412cddb08e5121d8ce8b990b6b23084f893fb5f2 (patch) | |
tree | 03602aa1dadb4110a975c0676039dbdac135b2e8 /lib/ProfileData/InstrProf.cpp | |
parent | 0a0124375c35cc865c3ac10d1820484a2e95def6 (diff) |
Use an emplace_back for consistency, NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269199 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ProfileData/InstrProf.cpp')
-rw-r--r-- | lib/ProfileData/InstrProf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ProfileData/InstrProf.cpp b/lib/ProfileData/InstrProf.cpp index f459d2d5431..b6cc077a6c4 100644 --- a/lib/ProfileData/InstrProf.cpp +++ b/lib/ProfileData/InstrProf.cpp @@ -428,7 +428,7 @@ void InstrProfRecord::addValueData(uint32_t ValueKind, uint32_t Site, std::vector<InstrProfValueSiteRecord> &ValueSites = getValueSitesForKind(ValueKind); if (N == 0) - ValueSites.push_back(InstrProfValueSiteRecord()); + ValueSites.emplace_back(); else ValueSites.emplace_back(VData, VData + N); } |