diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-08-14 01:25:10 +0000 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-08-14 01:25:10 +0000 |
| commit | b6946a2d1209cdf04b919d177a3c1ffd5b9fa589 (patch) | |
| tree | 07788f3c9cfce6b5dc1c824c1ae295f2e6a75d70 | |
| parent | c65ac865c394179e4144ecd8796beb96c46d09db (diff) | |
| download | bcm5719-llvm-b6946a2d1209cdf04b919d177a3c1ffd5b9fa589.tar.gz bcm5719-llvm-b6946a2d1209cdf04b919d177a3c1ffd5b9fa589.zip | |
Fix warning: suggest braces around initialization of subobject
This patch adds braces to the DEFINE_XMM macro.
llvm-svn: 368782
| -rw-r--r-- | lldb/source/Plugins/Process/Utility/RegisterContextWindows_x86_64.cpp | 12 |
1 files 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 6e964daece2..e90584de1a4 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[] = { |

