diff options
author | Kazu Hirata <kazu@google.com> | 2025-07-07 14:22:51 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2025-07-07 14:22:51 -0700 |
commit | 6b2cd08d4fd28c622a4598dda26b25ab8e82ba0c (patch) | |
tree | 3559434c113eebde8a38a1e81471a5c72fc0dcf7 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 0da9aacf4898fc9debfd930ab3dfbac7084c5e2a (diff) | |
download | llvm-6b2cd08d4fd28c622a4598dda26b25ab8e82ba0c.zip llvm-6b2cd08d4fd28c622a4598dda26b25ab8e82ba0c.tar.gz llvm-6b2cd08d4fd28c622a4598dda26b25ab8e82ba0c.tar.bz2 |
[AsmPrinter] Fix a warning
This patch fixes:
llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp:3575:44: error:
missing field 'Cases' initializer
[-Werror,-Wmissing-field-initializers]
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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)); |