[llvm] a8aa43b - [TableGen] Intialize vector with constructor instead of assign. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 22 22:41:34 PDT 2023
Author: Craig Topper
Date: 2023-04-22T22:37:57-07:00
New Revision: a8aa43bb1a7c5c7c1bfd59a64a8ffbb6550b6a7e
URL: https://github.com/llvm/llvm-project/commit/a8aa43bb1a7c5c7c1bfd59a64a8ffbb6550b6a7e
DIFF: https://github.com/llvm/llvm-project/commit/a8aa43bb1a7c5c7c1bfd59a64a8ffbb6550b6a7e.diff
LOG: [TableGen] Intialize vector with constructor instead of assign. NFC
Added:
Modified:
llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/DAGISelMatcherEmitter.cpp b/llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
index 42bdca47a3de..28d4d585f3dd 100644
--- a/llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
+++ b/llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
@@ -84,9 +84,8 @@ class MatcherTableEmitter {
}
public:
- MatcherTableEmitter(const CodeGenDAGPatterns &cgp) : CGP(cgp) {
- OpcodeCounts.assign(Matcher::HighestKind+1, 0);
- }
+ MatcherTableEmitter(const CodeGenDAGPatterns &cgp)
+ : CGP(cgp), OpcodeCounts(Matcher::HighestKind + 1, 0) {}
unsigned EmitMatcherList(const Matcher *N, const unsigned Indent,
unsigned StartIdx, raw_ostream &OS);
More information about the llvm-commits
mailing list