mirror of
https://github.com/intel/llvm.git
synced 2026-01-15 12:25:46 +08:00
Target: silence a GCC warning
GCC emits a warning:
warning: enumeral and non-enumeral type in conditional expression [enabled by default]
which does not seem to have a flag to control it. Simply add an explicit cast
for the boolean value.
llvm-svn: 213715
This commit is contained in:
@@ -2243,7 +2243,9 @@ ObjectFileMachO::ParseSymtab ()
|
||||
|
||||
const size_t function_starts_count = function_starts.GetSize();
|
||||
|
||||
const user_id_t TEXT_eh_frame_sectID = eh_frame_section_sp.get() ? eh_frame_section_sp->GetID() : NO_SECT;
|
||||
const user_id_t TEXT_eh_frame_sectID =
|
||||
eh_frame_section_sp.get() ? eh_frame_section_sp->GetID()
|
||||
: static_cast<user_id_t>(NO_SECT);
|
||||
|
||||
lldb::offset_t nlist_data_offset = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user