mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Use SmallVectorImpl::iterator/const_iterator instead of SmallVector to avoid specifying the vector size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185606 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -322,7 +322,7 @@ Input::HNode *Input::createHNodes(Node *N) {
|
||||
}
|
||||
|
||||
bool Input::MapHNode::isValidKey(StringRef Key) {
|
||||
for (SmallVector<const char *, 6>::iterator i = ValidKeys.begin(),
|
||||
for (SmallVectorImpl<const char *>::iterator i = ValidKeys.begin(),
|
||||
End = ValidKeys.end(); i != End; ++i) {
|
||||
if (Key.equals(*i))
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user