Skip to content

Commit 8e2f544

Browse files
authored
[TableGen] Use std::array::fill instead of std::memset. NFC (llvm#169204)
1 parent 3773bbe commit 8e2f544

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/TableGen/Common/CodeGenDAGPatterns.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ struct MachineValueTypeSet {
7171
return Count;
7272
}
7373
LLVM_ATTRIBUTE_ALWAYS_INLINE
74-
void clear() { std::memset(Words.data(), 0, NumWords * sizeof(WordType)); }
74+
void clear() { Words.fill(0); }
7575
LLVM_ATTRIBUTE_ALWAYS_INLINE
7676
bool empty() const {
7777
for (WordType W : Words)

0 commit comments

Comments
 (0)