Skip to content

Commit b6946a2

Browse files
committed
Fix warning: suggest braces around initialization of subobject
This patch adds braces to the DEFINE_XMM macro. llvm-svn: 368782
1 parent c65ac86 commit b6946a2

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

lldb/source/Plugins/Process/Utility/RegisterContextWindows_x86_64.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,13 @@ typedef struct _FPReg {
7575
(sizeof(GPR) + LLVM_EXTENSION offsetof(FPReg, regname))
7676

7777
#define DEFINE_XMM(reg) \
78-
#reg, NULL, sizeof(((FPReg *)nullptr)->reg), FPR_OFFSET(reg), eEncodingUint, \
79-
eFormatVectorOfUInt64, \
80-
{dwarf_##reg##_x86_64, dwarf_##reg##_x86_64, LLDB_INVALID_REGNUM, \
81-
LLDB_INVALID_REGNUM, lldb_##reg##_x86_64 }, \
82-
nullptr, nullptr, nullptr, 0
78+
{ \
79+
#reg, NULL, sizeof(((FPReg *)nullptr)->reg), FPR_OFFSET(reg), \
80+
eEncodingUint, eFormatVectorOfUInt64, \
81+
{dwarf_##reg##_x86_64, dwarf_##reg##_x86_64, LLDB_INVALID_REGNUM, \
82+
LLDB_INVALID_REGNUM, lldb_##reg##_x86_64 }, \
83+
nullptr, nullptr, nullptr, 0 \
84+
}
8385

8486
// clang-format off
8587
static RegisterInfo g_register_infos_x86_64[] = {

0 commit comments

Comments
 (0)