summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenMapTable.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-05-14 05:53:53 +0000
committerCraig Topper <craig.topper@gmail.com>2015-05-14 05:53:53 +0000
commitec9072d661d00c1c869d63d9740f1d55d1c85393 (patch)
treed2e8a47f0bf55a4e75e404dfa2d280f7c670a4fd /llvm/utils/TableGen/CodeGenMapTable.cpp
parente7aad46665c73f8e7c9d34f3d54013e1fc7e00ae (diff)
downloadbcm5719-llvm-ec9072d661d00c1c869d63d9740f1d55d1c85393.tar.gz
bcm5719-llvm-ec9072d661d00c1c869d63d9740f1d55d1c85393.zip
[TableGen] Replace some calls to ListInit::getSize() with ListInit::empty() if it was just comparing to 0. NFC.
llvm-svn: 237340
Diffstat (limited to 'llvm/utils/TableGen/CodeGenMapTable.cpp')
-rw-r--r--llvm/utils/TableGen/CodeGenMapTable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenMapTable.cpp b/llvm/utils/TableGen/CodeGenMapTable.cpp
index 8abea4808ba..b52a91d0177 100644
--- a/llvm/utils/TableGen/CodeGenMapTable.cpp
+++ b/llvm/utils/TableGen/CodeGenMapTable.cpp
@@ -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!");
OpenPOWER on IntegriCloud