[lldb] Specify unsigned underlying type for an enumeration explicitly
authorTatyana Krasnukha <tatyana@synopsys.com>
Thu, 26 Dec 2019 12:48:50 +0000 (15:48 +0300)
committerTatyana Krasnukha <tatyana@synopsys.com>
Thu, 26 Dec 2019 15:49:36 +0000 (18:49 +0300)
commite2d3eb00ccd8bd789636464791f4acdd6e0c4583
treed8e82942c7b80a55bc65376f472ea60fd082ed14
parentb0469eede2857f8c15bbec3db7605f699324befb
[lldb] Specify unsigned underlying type for an enumeration explicitly

The enumeration EntryType is used as a bit field of DebugMacroEntry:
```
  EntryType m_type : 3
```

Since underlying type of enumeration is implementation-dependent, a signed integer is
converted to the 3-bit value by some compilers (MSVC).

That's why a DebugMacroEntry instance that was created with EntryType value > 3 (END_FILE or INDIRECT)
contains incorrect negative value in its m_type data-member.
lldb/include/lldb/Symbol/DebugMacros.h