Author: jdevlieghere Date: Tue Aug 13 18:25:10 2019 New Revision: 368782 URL: http://llvm.org/viewvc/llvm-project?rev=368782&view=rev Log: Fix warning: suggest braces around initialization of subobject
This patch adds braces to the DEFINE_XMM macro. Modified: lldb/trunk/source/Plugins/Process/Utility/RegisterContextWindows_x86_64.cpp Modified: lldb/trunk/source/Plugins/Process/Utility/RegisterContextWindows_x86_64.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Utility/RegisterContextWindows_x86_64.cpp?rev=368782&r1=368781&r2=368782&view=diff ============================================================================== --- lldb/trunk/source/Plugins/Process/Utility/RegisterContextWindows_x86_64.cpp (original) +++ lldb/trunk/source/Plugins/Process/Utility/RegisterContextWindows_x86_64.cpp Tue Aug 13 18:25:10 2019 @@ -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[] = { _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits