Remove extra 'nullptr' entry from an array in tablegen register info file. It should...
authorCraig Topper <craig.topper@gmail.com>
Tue, 22 Sep 2015 05:37:16 +0000 (05:37 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 22 Sep 2015 05:37:16 +0000 (05:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248246 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/RegisterInfoEmitter.cpp

index d7dd9e7..b727df7 100644 (file)
@@ -240,7 +240,7 @@ EmitRegUnitPressure(raw_ostream &OS, const CodeGenRegBank &RegBank,
     MaxRegUnitWeight = std::max(MaxRegUnitWeight, RegUnits.Weight);
     OS << "    \"" << RegUnits.Name << "\",\n";
   }
     MaxRegUnitWeight = std::max(MaxRegUnitWeight, RegUnits.Weight);
     OS << "    \"" << RegUnits.Name << "\",\n";
   }
-  OS << "    nullptr };\n"
+  OS << "  };\n"
      << "  return PressureNameTable[Idx];\n"
      << "}\n\n";
 
      << "  return PressureNameTable[Idx];\n"
      << "}\n\n";