mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
[TableGen] Change 'car' to 'head' and 'cdr' to 'tail' in assert comments. These were the old names for these operations long ago. NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237514 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5dddb1909c
commit
d43901cbb1
@ -778,14 +778,14 @@ Init *UnOpInit::Fold(Record *CurRec, MultiClass *CurMultiClass) const {
|
||||
}
|
||||
case HEAD: {
|
||||
if (ListInit *LHSl = dyn_cast<ListInit>(LHS)) {
|
||||
assert(!LHSl->empty() && "Empty list in car");
|
||||
assert(!LHSl->empty() && "Empty list in head");
|
||||
return LHSl->getElement(0);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case TAIL: {
|
||||
if (ListInit *LHSl = dyn_cast<ListInit>(LHS)) {
|
||||
assert(!LHSl->empty() && "Empty list in cdr");
|
||||
assert(!LHSl->empty() && "Empty list in tail");
|
||||
// Note the +1. We can't just pass the result of getValues()
|
||||
// directly.
|
||||
return ListInit::get(LHSl->getValues().slice(1), LHSl->getType());
|
||||
|
Loading…
Reference in New Issue
Block a user