[Lldb-commits] [PATCH] D94917: [lldb] Fix crash in "help memory read"
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Jan 18 23:23:33 PST 2021
labath accepted this revision.
labath added inline comments.
This revision is now accepted and ready to land.
================
Comment at: lldb/include/lldb/Utility/OptionDefinition.h:52
+ // Must not have any bits set outside of unsigned char range
+ return !(short_option & ~((1 << CHAR_BIT) - 1)) &&
+ llvm::isPrint(short_option);
----------------
Something like `llvm::is(U)Int<CHAR_BIT>(short_option)` would better convey the intention.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94917/new/
https://reviews.llvm.org/D94917
More information about the lldb-commits
mailing list