mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 06:10:12 +00:00
[lldb] Surpress "bitfield too small" gcc warning
Gcc produces this (technically correct) warning when storing an
explicitly-sized enum in a bitfield. Surpress that by changing the type
of the bitfield to an integer. The same approach is used elsewhere in
llvm (e.g. 56b5eab12
).
This commit is contained in:
parent
57a51b689e
commit
c88e298b69
@ -23,7 +23,7 @@ typedef std::shared_ptr<DebugMacros> DebugMacrosSP;
|
||||
|
||||
class DebugMacroEntry {
|
||||
public:
|
||||
enum EntryType : uint32_t {
|
||||
enum EntryType : uint8_t {
|
||||
INVALID, DEFINE, UNDEF, START_FILE, END_FILE, INDIRECT
|
||||
};
|
||||
|
||||
@ -44,7 +44,7 @@ public:
|
||||
|
||||
~DebugMacroEntry() = default;
|
||||
|
||||
EntryType GetType() const { return m_type; }
|
||||
EntryType GetType() const { return static_cast<EntryType>(m_type); }
|
||||
|
||||
uint64_t GetLineNumber() const { return m_line; }
|
||||
|
||||
@ -62,7 +62,7 @@ private:
|
||||
|
||||
DebugMacroEntry(EntryType type, const DebugMacrosSP &debug_macros_sp);
|
||||
|
||||
EntryType m_type : 3;
|
||||
uint32_t m_type : 3;
|
||||
uint32_t m_line : 29;
|
||||
uint32_t m_debug_line_file_idx;
|
||||
ConstString m_str;
|
||||
|
Loading…
Reference in New Issue
Block a user