[llvm] r248246 - Remove extra 'nullptr' entry from an array in tablegen register info file. It should never have been accessed.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 21 22:37:17 PDT 2015


Author: ctopper
Date: Tue Sep 22 00:37:16 2015
New Revision: 248246

URL: http://llvm.org/viewvc/llvm-project?rev=248246&view=rev
Log:
Remove extra 'nullptr' entry from an array in tablegen register info file. It should never have been accessed.

Modified:
    llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp

Modified: llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp?rev=248246&r1=248245&r2=248246&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp Tue Sep 22 00:37:16 2015
@@ -240,7 +240,7 @@ EmitRegUnitPressure(raw_ostream &OS, con
     MaxRegUnitWeight = std::max(MaxRegUnitWeight, RegUnits.Weight);
     OS << "    \"" << RegUnits.Name << "\",\n";
   }
-  OS << "    nullptr };\n"
+  OS << "  };\n"
      << "  return PressureNameTable[Idx];\n"
      << "}\n\n";
 




More information about the llvm-commits mailing list