summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-08-14 01:25:10 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-08-14 01:25:10 +0000
commitb6946a2d1209cdf04b919d177a3c1ffd5b9fa589 (patch)
tree07788f3c9cfce6b5dc1c824c1ae295f2e6a75d70
parentc65ac865c394179e4144ecd8796beb96c46d09db (diff)
downloadbcm5719-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.cpp12
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[] = {
OpenPOWER on IntegriCloud