projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[TableGen] Replace some calls to ListInit::getSize() with ListInit::empty() if it...
[oota-llvm.git]
/
lib
/
TableGen
/
TGParser.cpp
diff --git
a/lib/TableGen/TGParser.cpp
b/lib/TableGen/TGParser.cpp
index 56f156dceab1bad815a02f3a0049737d8b812aaf..23ef5354fca46eda6ea1226ffc8156278d1e7a35 100644
(file)
--- a/
lib/TableGen/TGParser.cpp
+++ b/
lib/TableGen/TGParser.cpp
@@
-841,7
+841,7
@@
Init *TGParser::ParseOperation(Record *CurRec, RecTy *ItemType) {
return nullptr;
}
- if (LHSl && LHSl->
getSize() == 0
) {
+ if (LHSl && LHSl->
empty()
) {
TokError("empty list argument in unary operator");
return nullptr;
}