mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-07 16:42:07 +00:00
Use ArrayRef::slice instead of manually constructing an ArrayRef from ArrayRef iterators. NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237231 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6acfb5a28b
commit
448c555c54
@ -788,12 +788,7 @@ Init *UnOpInit::Fold(Record *CurRec, MultiClass *CurMultiClass) const {
|
||||
assert(LHSl->getSize() != 0 && "Empty list in cdr");
|
||||
// Note the +1. We can't just pass the result of getValues()
|
||||
// directly.
|
||||
ArrayRef<Init *>::iterator begin = LHSl->getValues().begin()+1;
|
||||
ArrayRef<Init *>::iterator end = LHSl->getValues().end();
|
||||
ListInit *Result =
|
||||
ListInit::get(ArrayRef<Init *>(begin, end - begin),
|
||||
LHSl->getType());
|
||||
return Result;
|
||||
return ListInit::get(LHSl->getValues().slice(1), LHSl->getType());
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user