[TableGen] Replace some calls to ListInit::getSize() with ListInit::empty() if it...
[oota-llvm.git] / utils / TableGen / CodeGenMapTable.cpp
index 8abea4808ba2fd7bd7ce095fc99d6faf1d559211..b52a91d0177b5f1c2b8e130c6ba3cbed25953b5c 100644 (file)
@@ -128,7 +128,7 @@ public:
     ListInit *ColValList = MapRec->getValueAsListInit("ValueCols");
 
     // Each instruction map must specify at least one column for it to be valid.
-    if (ColValList->getSize() == 0)
+    if (ColValList->empty())
       PrintFatalError(MapRec->getLoc(), "InstrMapping record `" +
         MapRec->getName() + "' has empty " + "`ValueCols' field!");