Author: ctopper Date: Sat Sep 26 00:22:17 2015 New Revision: 248660 URL: http://llvm.org/viewvc/llvm-project?rev=248660&view=rev Log: Use None to avoid re-mentioning the ArrayRef type to call the default constructor.
Modified: cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTIL.h cfe/trunk/include/clang/Sema/Sema.h cfe/trunk/lib/AST/Type.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=248660&r1=248659&r2=248660&view=diff ============================================================================== --- cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTIL.h (original) +++ cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTIL.h Sat Sep 26 00:22:17 2015 @@ -1479,7 +1479,7 @@ public: /// Return an empty list. ArrayRef<BasicBlock*> successors() { - return ArrayRef<BasicBlock*>(); + return None; } SExpr *returnValue() { return Retval; } @@ -1507,7 +1507,7 @@ inline ArrayRef<BasicBlock*> Terminator: case COP_Branch: return cast<Branch>(this)->successors(); case COP_Return: return cast<Return>(this)->successors(); default: - return ArrayRef<BasicBlock*>(); + return None; } } Modified: cfe/trunk/include/clang/Sema/Sema.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/Sema.h?rev=248660&r1=248659&r2=248660&view=diff ============================================================================== --- cfe/trunk/include/clang/Sema/Sema.h (original) +++ cfe/trunk/include/clang/Sema/Sema.h Sat Sep 26 00:22:17 2015 @@ -6737,7 +6737,7 @@ public: Sema &SemaRef, ActiveTemplateInstantiation::InstantiationKind Kind, SourceLocation PointOfInstantiation, SourceRange InstantiationRange, Decl *Entity, NamedDecl *Template = nullptr, - ArrayRef<TemplateArgument> TemplateArgs = ArrayRef<TemplateArgument>(), + ArrayRef<TemplateArgument> TemplateArgs = None, sema::TemplateDeductionInfo *DeductionInfo = nullptr); InstantiatingTemplate(const InstantiatingTemplate&) = delete; Modified: cfe/trunk/lib/AST/Type.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Type.cpp?rev=248660&r1=248659&r2=248660&view=diff ============================================================================== --- cfe/trunk/lib/AST/Type.cpp (original) +++ cfe/trunk/lib/AST/Type.cpp Sat Sep 26 00:22:17 2015 @@ -1307,7 +1307,7 @@ Optional<ArrayRef<QualType>> Type::getOb if (!curClassDecl) { // If we don't have a context type (e.g., this is "id" or some // variant thereof), substitute the bounds. - return llvm::ArrayRef<QualType>(); + return None; } // Follow the superclass chain until we've mapped the receiver type @@ -1327,7 +1327,7 @@ Optional<ArrayRef<QualType>> Type::getOb // If we don't have a receiver type, or the receiver type does not // have type arguments, substitute in the defaults. if (!objectType || objectType->isUnspecialized()) { - return llvm::ArrayRef<QualType>(); + return None; } // The receiver type has the type arguments we want. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits