commit | ec9072d661d00c1c869d63d9740f1d55d1c85393 | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@gmail.com> | Thu May 14 05:53:53 2015 +0000 |
committer | Craig Topper <craig.topper@gmail.com> | Thu May 14 05:53:53 2015 +0000 |
tree | d2e8a47f0bf55a4e75e404dfa2d280f7c670a4fd | |
parent | e7aad46665c73f8e7c9d34f3d54013e1fc7e00ae [diff] [blame] |
[TableGen] Replace some calls to ListInit::getSize() with ListInit::empty() if it was just comparing to 0. NFC. llvm-svn: 237340
diff --git a/llvm/lib/TableGen/TGParser.cpp b/llvm/lib/TableGen/TGParser.cpp index 56f156d..23ef535 100644 --- a/llvm/lib/TableGen/TGParser.cpp +++ b/llvm/lib/TableGen/TGParser.cpp
@@ -841,7 +841,7 @@ return nullptr; } - if (LHSl && LHSl->getSize() == 0) { + if (LHSl && LHSl->empty()) { TokError("empty list argument in unary operator"); return nullptr; }