[Lldb-commits] [PATCH] D32137: [Utility] Placate another GCC warning

Stephane Sezer via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Apr 19 17:40:40 PDT 2017


sas accepted this revision.
sas added inline comments.
This revision is now accepted and ready to land.


================
Comment at: source/Plugins/Process/Utility/RegisterContextPOSIX_mips64.cpp:59
+  assert(m_num_registers ==
+         static_cast<unsigned>(m_registers_count[gpr_registers_count] +
+                               m_registers_count[fpr_registers_count] +
----------------
If you're gonna go with casting, I think using the same type as `m_num_registers` makes more sense.

    assert(m_num_registers == static_cast<uint32_t>(...));




https://reviews.llvm.org/D32137





More information about the lldb-commits mailing list