forked from OSchip/llvm-project
Use SmallVectorImpl::const_iterator instead of SmallVector to avoid specifying the vector size.
llvm-svn: 185514
This commit is contained in:
parent
72cde639cb
commit
af0ad9e20f
|
@ -2763,7 +2763,7 @@ SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable,
|
|||
bool mayStore = MCID.mayStore();
|
||||
|
||||
unsigned NumMemRefs = 0;
|
||||
for (SmallVector<MachineMemOperand*, 2>::const_iterator I =
|
||||
for (SmallVectorImpl<MachineMemOperand *>::const_iterator I =
|
||||
MatchedMemRefs.begin(), E = MatchedMemRefs.end(); I != E; ++I) {
|
||||
if ((*I)->isLoad()) {
|
||||
if (mayLoad)
|
||||
|
@ -2780,7 +2780,7 @@ SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable,
|
|||
MF->allocateMemRefsArray(NumMemRefs);
|
||||
|
||||
MachineSDNode::mmo_iterator MemRefsPos = MemRefs;
|
||||
for (SmallVector<MachineMemOperand*, 2>::const_iterator I =
|
||||
for (SmallVectorImpl<MachineMemOperand *>::const_iterator I =
|
||||
MatchedMemRefs.begin(), E = MatchedMemRefs.end(); I != E; ++I) {
|
||||
if ((*I)->isLoad()) {
|
||||
if (mayLoad)
|
||||
|
|
Loading…
Reference in New Issue