[llvm] r324643 - Fix missing field initializer warning in TableGen SubtargetEmitter
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 8 11:57:05 PST 2018
Author: dblaikie
Date: Thu Feb 8 11:57:05 2018
New Revision: 324643
URL: http://llvm.org/viewvc/llvm-project?rev=324643&view=rev
Log:
Fix missing field initializer warning in TableGen SubtargetEmitter
Modified:
llvm/trunk/utils/TableGen/SubtargetEmitter.cpp
Modified: llvm/trunk/utils/TableGen/SubtargetEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/SubtargetEmitter.cpp?rev=324643&r1=324642&r2=324643&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/SubtargetEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/SubtargetEmitter.cpp Thu Feb 8 11:57:05 2018
@@ -608,9 +608,10 @@ void SubtargetEmitter::EmitProcessorReso
EmitProcessorResourceSubUnits(ProcModel, OS);
OS << "\n// {Name, NumUnits, SuperIdx, IsBuffered, SubUnitsIdxBegin}\n";
- OS << "static const llvm::MCProcResourceDesc "
- << ProcModel.ModelName << "ProcResources" << "[] = {\n"
- << " {DBGFIELD(\"InvalidUnit\") 0, 0, 0},\n";
+ OS << "static const llvm::MCProcResourceDesc " << ProcModel.ModelName
+ << "ProcResources"
+ << "[] = {\n"
+ << " {DBGFIELD(\"InvalidUnit\") 0, 0, 0, 0},\n";
unsigned SubUnitsOffset = 1;
for (unsigned i = 0, e = ProcModel.ProcResourceDefs.size(); i < e; ++i) {
More information about the llvm-commits
mailing list