[Lldb-commits] [PATCH] D104914: [lldb] Correct format of qMemTags type field

David Spickett via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 28 07:00:29 PDT 2021


DavidSpickett updated this revision to Diff 362366.
DavidSpickett added a comment.

- Rebase onto main
- Update the way we cast down to int32_t to avoid use of static_cast.

We weren't invoking the undefined behaviour of unsigned to signed
due to the limit check. However I think this shows our intent more clearly.

It's essentially C++20's std::bitcast.

Also I was unable to reproduce the test failures,
ok to land this as is given that QMemTags has similair tests
and is already on main?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D104914/new/

https://reviews.llvm.org/D104914

Files:
  lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
  lldb/test/API/tools/lldb-server/memory-tagging/TestGdbRemoteMemoryTagging.py
  lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104914.362366.patch
Type: text/x-patch
Size: 8764 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210728/f56a79df/attachment.bin>


More information about the lldb-commits mailing list