mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
[TableGen] Replace some calls to ListInit::getSize() with ListInit::empty() if it was just comparing to 0. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237340 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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!");
|
||||
|
||||
|
Reference in New Issue
Block a user