Use llvm::makeArrayRef instead of explicitly calling ArrayRef constructor and mentioning the type. This works now that we have a conversion from ArrayRef<T*> to ArrayRef<const T*>.

llvm-svn: 216824
This commit is contained in:
Craig Topper
2014-08-30 16:55:39 +00:00
parent fd38cbebda
commit 8c2a2a0f82
12 changed files with 23 additions and 32 deletions

View File

@@ -3855,8 +3855,8 @@ void TypoCorrectionConsumer::NamespaceSpecifierSet::addNameSpecifier(
SmallVector<const IdentifierInfo*, 4> NewNameSpecifierIdentifiers;
getNestedNameSpecifierIdentifiers(NNS, NewNameSpecifierIdentifiers);
NumSpecifiers = llvm::ComputeEditDistance(
ArrayRef<const IdentifierInfo *>(CurNameSpecifierIdentifiers),
ArrayRef<const IdentifierInfo *>(NewNameSpecifierIdentifiers));
llvm::makeArrayRef(CurNameSpecifierIdentifiers),
llvm::makeArrayRef(NewNameSpecifierIdentifiers));
}
isSorted = false;