From b6946a2d1209cdf04b919d177a3c1ffd5b9fa589 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Wed, 14 Aug 2019 01:25:10 +0000 Subject: [PATCH] Fix warning: suggest braces around initialization of subobject This patch adds braces to the DEFINE_XMM macro. llvm-svn: 368782 --- .../Utility/RegisterContextWindows_x86_64.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lldb/source/Plugins/Process/Utility/RegisterContextWindows_x86_64.cpp b/lldb/source/Plugins/Process/Utility/RegisterContextWindows_x86_64.cpp index 6e964daece24..e90584de1a44 100644 --- a/lldb/source/Plugins/Process/Utility/RegisterContextWindows_x86_64.cpp +++ b/lldb/source/Plugins/Process/Utility/RegisterContextWindows_x86_64.cpp @@ -75,11 +75,13 @@ typedef struct _FPReg { (sizeof(GPR) + LLVM_EXTENSION offsetof(FPReg, regname)) #define DEFINE_XMM(reg) \ -#reg, NULL, sizeof(((FPReg *)nullptr)->reg), FPR_OFFSET(reg), eEncodingUint, \ - eFormatVectorOfUInt64, \ - {dwarf_##reg##_x86_64, dwarf_##reg##_x86_64, LLDB_INVALID_REGNUM, \ - LLDB_INVALID_REGNUM, lldb_##reg##_x86_64 }, \ - nullptr, nullptr, nullptr, 0 + { \ +#reg, NULL, sizeof(((FPReg *)nullptr)->reg), FPR_OFFSET(reg), \ + eEncodingUint, eFormatVectorOfUInt64, \ + {dwarf_##reg##_x86_64, dwarf_##reg##_x86_64, LLDB_INVALID_REGNUM, \ + LLDB_INVALID_REGNUM, lldb_##reg##_x86_64 }, \ + nullptr, nullptr, nullptr, 0 \ + } // clang-format off static RegisterInfo g_register_infos_x86_64[] = {