parent
09af67aba5
commit
c005cc06cd
|
@ -4635,7 +4635,7 @@ public:
|
|||
/// Retrieve the type arguments of this object type as they were
|
||||
/// written.
|
||||
ArrayRef<QualType> getTypeArgsAsWritten() const {
|
||||
return ArrayRef<QualType>(getTypeArgStorage(),
|
||||
return llvm::makeArrayRef(getTypeArgStorage(),
|
||||
ObjCObjectTypeBits.NumTypeArgs);
|
||||
}
|
||||
|
||||
|
|
|
@ -1395,7 +1395,7 @@ public:
|
|||
|
||||
/// Return the list of basic blocks that this terminator can branch to.
|
||||
ArrayRef<BasicBlock*> successors() {
|
||||
return ArrayRef<BasicBlock*>(&TargetBlock, 1);
|
||||
return llvm::makeArrayRef(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 ArrayRef<BasicBlock*>(Branches, 2);
|
||||
return llvm::makeArrayRef(Branches);
|
||||
}
|
||||
|
||||
template <class V>
|
||||
|
|
|
@ -5329,7 +5329,7 @@ Expr *ASTNodeImporter::VisitCallExpr(CallExpr *E) {
|
|||
|
||||
return new (Importer.getToContext())
|
||||
CallExpr(Importer.getToContext(), ToCallee,
|
||||
ArrayRef<Expr*>(ToArgs_Copied, NumArgs), T, E->getValueKind(),
|
||||
llvm::makeArrayRef(ToArgs_Copied, NumArgs), T, E->getValueKind(),
|
||||
Importer.Import(E->getRParenLoc()));
|
||||
}
|
||||
|
||||
|
|
|
@ -2825,7 +2825,7 @@ CodeGenModule::GetAddrOfConstantCFString(const StringLiteral *Literal) {
|
|||
// String pointer.
|
||||
llvm::Constant *C = nullptr;
|
||||
if (isUTF16) {
|
||||
ArrayRef<uint16_t> Arr = llvm::makeArrayRef<uint16_t>(
|
||||
auto Arr = llvm::makeArrayRef(
|
||||
reinterpret_cast<uint16_t *>(const_cast<char *>(Entry.first().data())),
|
||||
Entry.first().size() / 2);
|
||||
C = llvm::ConstantDataArray::get(VMContext, Arr);
|
||||
|
|
|
@ -208,7 +208,7 @@ namespace clang {
|
|||
auto &&PartialSpecializations = getPartialSpecializations(Common);
|
||||
ArrayRef<DeclID> LazySpecializations;
|
||||
if (auto *LS = Common->LazySpecializations)
|
||||
LazySpecializations = ArrayRef<DeclID>(LS + 1, LS + 1 + LS[0]);
|
||||
LazySpecializations = llvm::makeArrayRef(LS + 1, LS + 1 + LS[0]);
|
||||
|
||||
// Add a slot to the record for the number of specializations.
|
||||
unsigned I = Record.size();
|
||||
|
|
Loading…
Reference in New Issue