mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-02 15:51:54 +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
llvm-svn: 237514
This commit is contained in:
parent
26394d81cd
commit
93e883ed9f
@ -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…
x
Reference in New Issue
Block a user