summaryrefslogtreecommitdiffstats
path: root/llvm/lib/TableGen
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-05-16 05:42:13 +0000
committerCraig Topper <craig.topper@gmail.com>2015-05-16 05:42:13 +0000
commit41ce4de0b477bc7beb356f2a4352e8ebac736e4f (patch)
tree8d250a04930496f5709e111000557c8656883674 /llvm/lib/TableGen
parent8ddb0d825d84af211dc0928b0e46c2392c339861 (diff)
downloadbcm5719-llvm-41ce4de0b477bc7beb356f2a4352e8ebac736e4f.tar.gz
bcm5719-llvm-41ce4de0b477bc7beb356f2a4352e8ebac736e4f.zip
[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
Diffstat (limited to 'llvm/lib/TableGen')
-rw-r--r--llvm/lib/TableGen/Record.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/TableGen/Record.cpp b/llvm/lib/TableGen/Record.cpp
index 2c9b0244957..348a769dc8d 100644
--- a/llvm/lib/TableGen/Record.cpp
+++ b/llvm/lib/TableGen/Record.cpp
@@ -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());
OpenPOWER on IntegriCloud