/// Return an empty list.
ArrayRef<BasicBlock*> successors() {
- return ArrayRef<BasicBlock*>();
+ return None;
}
SExpr *returnValue() { return Retval; }
case COP_Branch: return cast<Branch>(this)->successors();
case COP_Return: return cast<Return>(this)->successors();
default:
- return ArrayRef<BasicBlock*>();
+ return None;
}
}
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;
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
// 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.