From: Craig Topper Date: Mon, 11 Jan 2016 05:13:38 +0000 (+0000) Subject: [TableGen] Remove unnecessary 0 terminator from an array that only existed to prevent... X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=db6f0c6ae0b1d00f21e262d26d1d16ccc368f76c;hp=b201aa77b012e1f9e79747dc61acac025c4a6736 [TableGen] Remove unnecessary 0 terminator from an array that only existed to prevent ending an array with a comma. But that's perfectly legal and not something we need to prevent. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257314 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/AsmWriterEmitter.cpp b/utils/TableGen/AsmWriterEmitter.cpp index c4f8a6a1ff5..0ad6c675e90 100644 --- a/utils/TableGen/AsmWriterEmitter.cpp +++ b/utils/TableGen/AsmWriterEmitter.cpp @@ -398,8 +398,6 @@ void AsmWriterEmitter::EmitPrintInstruction(raw_ostream &O) { O << " " << (OpcodeInfo[i] & 0xffffffff) << "U,\t// " << NumberedInstructions->at(i)->TheDef->getName() << "\n"; } - // Add a dummy entry so the array init doesn't end with a comma. - O << " 0U\n"; O << " };\n\n"; if (BitsLeft < 32) { @@ -412,8 +410,6 @@ void AsmWriterEmitter::EmitPrintInstruction(raw_ostream &O) { O << " " << (OpcodeInfo[i] >> 32) << "U,\t// " << NumberedInstructions->at(i)->TheDef->getName() << "\n"; } - // Add a dummy entry so the array init doesn't end with a comma. - O << " 0U\n"; O << " };\n\n"; }