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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user