Skip to content

Commit 6b2cd08

Browse files
[AsmPrinter] Fix a warning
This patch fixes: llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp:3575:44: error: missing field 'Cases' initializer [-Werror,-Wmissing-field-initializers]
1 parent 0da9aac commit 6b2cd08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3572,7 +3572,8 @@ void CodeViewDebug::collectDebugInfoForJumpTables(const MachineFunction *MF,
35723572
BaseOffset,
35733573
Branch,
35743574
MF->getJTISymbol(JumpTableIndex, MMI->getContext()),
3575-
JTE.MBBs.size()};
3575+
JTE.MBBs.size(),
3576+
{}};
35763577
for (const auto &MBB : JTE.MBBs)
35773578
CVJTI.Cases.push_back(MBB->getSymbol());
35783579
CurFn->JumpTables.push_back(std::move(CVJTI));

0 commit comments

Comments
 (0)