From 6b2cd08d4fd28c622a4598dda26b25ab8e82ba0c Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 7 Jul 2025 14:22:51 -0700 Subject: [AsmPrinter] Fix a warning This patch fixes: llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp:3575:44: error: missing field 'Cases' initializer [-Werror,-Wmissing-field-initializers] --- llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp') diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index 65a8735..bc74daf 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -3572,7 +3572,8 @@ void CodeViewDebug::collectDebugInfoForJumpTables(const MachineFunction *MF, BaseOffset, Branch, MF->getJTISymbol(JumpTableIndex, MMI->getContext()), - JTE.MBBs.size()}; + JTE.MBBs.size(), + {}}; for (const auto &MBB : JTE.MBBs) CVJTI.Cases.push_back(MBB->getSymbol()); CurFn->JumpTables.push_back(std::move(CVJTI)); -- cgit v1.1