[llvm] 8e2f544 - [TableGen] Use std::array::fill instead of std::memset. NFC (#169204)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 23 09:22:39 PST 2025
Author: Craig Topper
Date: 2025-11-23T09:22:34-08:00
New Revision: 8e2f5442f8a5caaa968b6215bd416ece8ed694c7
URL: https://github.com/llvm/llvm-project/commit/8e2f5442f8a5caaa968b6215bd416ece8ed694c7
DIFF: https://github.com/llvm/llvm-project/commit/8e2f5442f8a5caaa968b6215bd416ece8ed694c7.diff
LOG: [TableGen] Use std::array::fill instead of std::memset. NFC (#169204)
Added:
Modified:
llvm/utils/TableGen/Common/CodeGenDAGPatterns.h
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/Common/CodeGenDAGPatterns.h b/llvm/utils/TableGen/Common/CodeGenDAGPatterns.h
index 2cd7ec1521feb..8146f54cd3db5 100644
--- a/llvm/utils/TableGen/Common/CodeGenDAGPatterns.h
+++ b/llvm/utils/TableGen/Common/CodeGenDAGPatterns.h
@@ -71,7 +71,7 @@ struct MachineValueTypeSet {
return Count;
}
LLVM_ATTRIBUTE_ALWAYS_INLINE
- void clear() { std::memset(Words.data(), 0, NumWords * sizeof(WordType)); }
+ void clear() { Words.fill(0); }
LLVM_ATTRIBUTE_ALWAYS_INLINE
bool empty() const {
for (WordType W : Words)
More information about the llvm-commits
mailing list