summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
diff options
context:
space:
mode:
authorShafik Yaghmour <shafik.yaghmour@intel.com>2022-07-25 15:56:44 -0700
committerShafik Yaghmour <shafik.yaghmour@intel.com>2022-07-25 16:01:01 -0700
commitaea82d4551139ded0290afab739f0b367d055628 (patch)
treefc099af9d0d2987bbc86e283b18a69901d90fc43 /lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
parent45944e7cf45915eb2a0a2fae24e3396fc91dfc22 (diff)
[Clang] Fix how we set the NumPositiveBits on an EnumDecl to cover the case of single enumerator with value zero or an empty enum
Currently in Sema::ActOnEnumBody(...) when calculating NumPositiveBits we miss the case where there is only a single enumerator with value zero and the case of an empty enum. In both cases we end up with zero positive bits when in fact we need one bit to store the value zero. This PR updates the calculation to account for these cases. Differential Revision: https://reviews.llvm.org/D130301
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp')
0 files changed, 0 insertions, 0 deletions