mirror of
https://github.com/intel/llvm.git
synced 2026-01-18 16:50:51 +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;
|
||||
|
||||
|
||||
@@ -486,9 +486,12 @@ Target::CreateFuncRegexBreakpoint (const FileSpecList *containingModules,
|
||||
bool hardware)
|
||||
{
|
||||
SearchFilterSP filter_sp(GetSearchFilterForModuleAndCUList (containingModules, containingSourceFiles));
|
||||
bool skip =
|
||||
(skip_prologue == eLazyBoolCalculate) ? GetSkipPrologue()
|
||||
: static_cast<bool>(skip_prologue);
|
||||
BreakpointResolverSP resolver_sp(new BreakpointResolverName (NULL,
|
||||
func_regex,
|
||||
skip_prologue == eLazyBoolCalculate ? GetSkipPrologue() : skip_prologue));
|
||||
skip));
|
||||
|
||||
return CreateBreakpoint (filter_sp, resolver_sp, internal, hardware, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user