Author: ctopper Date: Mon Sep 28 23:53:28 2015 New Revision: 248776 URL: http://llvm.org/viewvc/llvm-project?rev=248776&view=rev Log: Simplify or remove calls to makeArrayRef based on feedback from David Blaikie. NFC.
Modified: cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTIL.h cfe/trunk/lib/Serialization/ASTWriterDecl.cpp Modified: cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTIL.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTIL.h?rev=248776&r1=248775&r2=248776&view=diff ============================================================================== --- cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTIL.h (original) +++ cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTIL.h Mon Sep 28 23:53:28 2015 @@ -1395,7 +1395,7 @@ public: /// Return the list of basic blocks that this terminator can branch to. ArrayRef<BasicBlock*> successors() { - return llvm::makeArrayRef(TargetBlock); + return TargetBlock; } template <class V> @@ -1445,7 +1445,7 @@ public: /// Return the list of basic blocks that this terminator can branch to. ArrayRef<BasicBlock*> successors() { - return llvm::makeArrayRef(Branches); + return Branches; } template <class V> Modified: cfe/trunk/lib/Serialization/ASTWriterDecl.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTWriterDecl.cpp?rev=248776&r1=248775&r2=248776&view=diff ============================================================================== --- cfe/trunk/lib/Serialization/ASTWriterDecl.cpp (original) +++ cfe/trunk/lib/Serialization/ASTWriterDecl.cpp Mon Sep 28 23:53:28 2015 @@ -208,7 +208,7 @@ namespace clang { auto &&PartialSpecializations = getPartialSpecializations(Common); ArrayRef<DeclID> LazySpecializations; if (auto *LS = Common->LazySpecializations) - LazySpecializations = llvm::makeArrayRef(LS + 1, LS + 1 + LS[0]); + LazySpecializations = llvm::makeArrayRef(LS + 1, LS[0]); // Add a slot to the record for the number of specializations. unsigned I = Record.size(); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits