mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-17 18:24:34 +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:
@@ -3076,7 +3076,7 @@ void CodeGenDAGPatterns::ParseInstructions() {
|
||||
// null_frag operator is as-if no pattern were specified. Normally this
|
||||
// is from a multiclass expansion w/ a SDPatternOperator passed in as
|
||||
// null_frag.
|
||||
if (!LI || LI->getSize() == 0 || hasNullFragReference(LI)) {
|
||||
if (!LI || LI->empty() || hasNullFragReference(LI)) {
|
||||
std::vector<Record*> Results;
|
||||
std::vector<Record*> Operands;
|
||||
|
||||
@@ -3399,7 +3399,7 @@ void CodeGenDAGPatterns::ParsePatterns() {
|
||||
Pattern->InlinePatternFragments();
|
||||
|
||||
ListInit *LI = CurPattern->getValueAsListInit("ResultInstrs");
|
||||
if (LI->getSize() == 0) continue; // no pattern.
|
||||
if (LI->empty()) continue; // no pattern.
|
||||
|
||||
// Parse the instruction.
|
||||
TreePattern Result(CurPattern, LI, false, *this);
|
||||
|
Reference in New Issue
Block a user