[TableGen] Replace some calls to ListInit::getSize() with ListInit::empty() if it...
[oota-llvm.git] / lib / TableGen / TGParser.cpp
index 56f156dceab1bad815a02f3a0049737d8b812aaf..23ef5354fca46eda6ea1226ffc8156278d1e7a35 100644 (file)
@@ -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;
         }