Merge pull request #71863 from bnbarham/remove-makearrayref

Use the new template deduction guides rather than `makeArrayRef`
This commit is contained in:
Ben Barham
2024-02-25 21:06:51 -08:00
committed by GitHub
122 changed files with 305 additions and 360 deletions

View File

@@ -770,13 +770,13 @@ public:
bool isLeaf() const { return ChildProjections.empty(); }
ArrayRef<unsigned> getChildProjections() const {
return llvm::makeArrayRef(ChildProjections);
return llvm::ArrayRef(ChildProjections);
}
std::optional<Projection> &getProjection() { return Proj; }
const ArrayRef<Operand *> getNonProjUsers() const {
return llvm::makeArrayRef(NonProjUsers);
return llvm::ArrayRef(NonProjUsers);
}
SILType getType() const { return NodeType; }
@@ -884,7 +884,7 @@ public:
SILModule &getModule() const { return *Mod; }
llvm::ArrayRef<ProjectionTreeNode *> getProjectionTreeNodes() {
return llvm::makeArrayRef(ProjectionTreeNodes);
return llvm::ArrayRef(ProjectionTreeNodes);
}
/// Iterate over all values in the tree. The function should return false if