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:
f92fdc8
)
[TableGen] Use SmallVector::assign instead of a resize and replace element.
author
Craig Topper
<craig.topper@gmail.com>
Tue, 24 Nov 2015 08:20:41 +0000
(08:20 +0000)
committer
Craig Topper
<craig.topper@gmail.com>
Tue, 24 Nov 2015 08:20:41 +0000
(08:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253960
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/CodeGenDAGPatterns.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/CodeGenDAGPatterns.cpp
b/utils/TableGen/CodeGenDAGPatterns.cpp
index aac84705562e56d3f543cafbc43addb1ecb1c32d..415511123d2803f6f0a5d05fbe32214f262c49c9 100644
(file)
--- a/
utils/TableGen/CodeGenDAGPatterns.cpp
+++ b/
utils/TableGen/CodeGenDAGPatterns.cpp
@@
-194,8
+194,7
@@
bool EEVT::TypeSet::MergeInTypeInfo(const EEVT::TypeSet &InVT, TreePattern &TP){
// multiple different integer types, replace them with a single iPTR.
if ((InVT.TypeVec[0] == MVT::iPTR || InVT.TypeVec[0] == MVT::iPTRAny) &&
TypeVec.size() != 1) {
- TypeVec.resize(1);
- TypeVec[0] = InVT.TypeVec[0];
+ TypeVec.assign(1, InVT.TypeVec[0]);
MadeChange = true;
}