Use None to avoid re-mentioning the ArrayRef type to call the default constructor.
llvm-svn: 248660
This commit is contained in:
parent
f36a5c4af7
commit
5b7183551f
|
|
@ -1479,7 +1479,7 @@ public:
|
||||||
|
|
||||||
/// Return an empty list.
|
/// Return an empty list.
|
||||||
ArrayRef<BasicBlock*> successors() {
|
ArrayRef<BasicBlock*> successors() {
|
||||||
return ArrayRef<BasicBlock*>();
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
SExpr *returnValue() { return Retval; }
|
SExpr *returnValue() { return Retval; }
|
||||||
|
|
@ -1507,7 +1507,7 @@ inline ArrayRef<BasicBlock*> Terminator::successors() {
|
||||||
case COP_Branch: return cast<Branch>(this)->successors();
|
case COP_Branch: return cast<Branch>(this)->successors();
|
||||||
case COP_Return: return cast<Return>(this)->successors();
|
case COP_Return: return cast<Return>(this)->successors();
|
||||||
default:
|
default:
|
||||||
return ArrayRef<BasicBlock*>();
|
return None;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6737,7 +6737,7 @@ public:
|
||||||
Sema &SemaRef, ActiveTemplateInstantiation::InstantiationKind Kind,
|
Sema &SemaRef, ActiveTemplateInstantiation::InstantiationKind Kind,
|
||||||
SourceLocation PointOfInstantiation, SourceRange InstantiationRange,
|
SourceLocation PointOfInstantiation, SourceRange InstantiationRange,
|
||||||
Decl *Entity, NamedDecl *Template = nullptr,
|
Decl *Entity, NamedDecl *Template = nullptr,
|
||||||
ArrayRef<TemplateArgument> TemplateArgs = ArrayRef<TemplateArgument>(),
|
ArrayRef<TemplateArgument> TemplateArgs = None,
|
||||||
sema::TemplateDeductionInfo *DeductionInfo = nullptr);
|
sema::TemplateDeductionInfo *DeductionInfo = nullptr);
|
||||||
|
|
||||||
InstantiatingTemplate(const InstantiatingTemplate&) = delete;
|
InstantiatingTemplate(const InstantiatingTemplate&) = delete;
|
||||||
|
|
|
||||||
|
|
@ -1307,7 +1307,7 @@ Optional<ArrayRef<QualType>> Type::getObjCSubstitutions(
|
||||||
if (!curClassDecl) {
|
if (!curClassDecl) {
|
||||||
// If we don't have a context type (e.g., this is "id" or some
|
// If we don't have a context type (e.g., this is "id" or some
|
||||||
// variant thereof), substitute the bounds.
|
// variant thereof), substitute the bounds.
|
||||||
return llvm::ArrayRef<QualType>();
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Follow the superclass chain until we've mapped the receiver type
|
// Follow the superclass chain until we've mapped the receiver type
|
||||||
|
|
@ -1327,7 +1327,7 @@ Optional<ArrayRef<QualType>> Type::getObjCSubstitutions(
|
||||||
// If we don't have a receiver type, or the receiver type does not
|
// If we don't have a receiver type, or the receiver type does not
|
||||||
// have type arguments, substitute in the defaults.
|
// have type arguments, substitute in the defaults.
|
||||||
if (!objectType || objectType->isUnspecialized()) {
|
if (!objectType || objectType->isUnspecialized()) {
|
||||||
return llvm::ArrayRef<QualType>();
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The receiver type has the type arguments we want.
|
// The receiver type has the type arguments we want.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue