Skip to content

Commit 3af3525

Browse files
[ProfileData] Simplify InstrProfValueSiteRecord (NFC) (#95143)
std::list default-constructs itself as an empty list, so we don't need to call ValueData.clear() in the constructor.
1 parent 18a8983 commit 3af3525

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/ProfileData/InstrProf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ struct InstrProfValueSiteRecord {
797797
/// Value profiling data pairs at a given value site.
798798
std::list<InstrProfValueData> ValueData;
799799

800-
InstrProfValueSiteRecord() { ValueData.clear(); }
800+
InstrProfValueSiteRecord() = default;
801801
template <class InputIterator>
802802
InstrProfValueSiteRecord(InputIterator F, InputIterator L)
803803
: ValueData(F, L) {}

0 commit comments

Comments
 (0)