projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ade584
)
Use vector constructor instead of a for loop to initialize entries.
author
Craig Topper
<craig.topper@gmail.com>
Thu, 4 Sep 2014 04:49:03 +0000
(
04:49
+0000)
committer
Craig Topper
<craig.topper@gmail.com>
Thu, 4 Sep 2014 04:49:03 +0000
(
04:49
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217123
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/FixedLenDecoderEmitter.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/FixedLenDecoderEmitter.cpp
b/utils/TableGen/FixedLenDecoderEmitter.cpp
index
a4eb829
..
084bef2
100644
(file)
--- a/
utils/TableGen/FixedLenDecoderEmitter.cpp
+++ b/
utils/TableGen/FixedLenDecoderEmitter.cpp
@@
-343,10
+343,8
@@
public:
unsigned BW,
const FixedLenDecoderEmitter *E)
: AllInstructions(Insts), Opcodes(IDs), Operands(Ops), Filters(),
- Parent(nullptr), BestIndex(-1), BitWidth(BW), Emitter(E) {
- for (unsigned i = 0; i < BitWidth; ++i)
- FilterBitValues.push_back(BIT_UNFILTERED);
-
+ FilterBitValues(BW, BIT_UNFILTERED), Parent(nullptr), BestIndex(-1),
+ BitWidth(BW), Emitter(E) {
doFilter();
}