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

@@ -167,8 +167,8 @@ void ASTDeclWriter::VisitDecl(Decl *D) {
Record.push_back(D->isInvalidDecl());
Record.push_back(D->hasAttrs());
if (D->hasAttrs())
Writer.WriteAttributes(ArrayRef<const Attr*>(D->getAttrs().begin(),
D->getAttrs().size()), Record);
Writer.WriteAttributes(llvm::makeArrayRef(D->getAttrs().begin(),
D->getAttrs().size()), Record);
Record.push_back(D->isImplicit());
Record.push_back(D->isUsed(false));
Record.push_back(D->isReferenced());