/// Return the list of basic blocks that this terminator can branch to.
ArrayRef<BasicBlock*> successors() {
- return llvm::makeArrayRef(TargetBlock);
+ return TargetBlock;
}
template <class V>
/// Return the list of basic blocks that this terminator can branch to.
ArrayRef<BasicBlock*> successors() {
- return llvm::makeArrayRef(Branches);
+ return Branches;
}
template <class V>
auto &&PartialSpecializations = getPartialSpecializations(Common);
ArrayRef<DeclID> LazySpecializations;
if (auto *LS = Common->LazySpecializations)
- LazySpecializations = llvm::makeArrayRef(LS + 1, LS + 1 + LS[0]);
+ LazySpecializations = llvm::makeArrayRef(LS + 1, LS[0]);
// Add a slot to the record for the number of specializations.
unsigned I = Record.size();