diff options
| author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-07-23 01:53:52 +0000 |
|---|---|---|
| committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-07-23 01:53:52 +0000 |
| commit | b5c128b3c79eb3557996fabbb17031aba26ebba3 (patch) | |
| tree | 5378d2577f6986cf96d5a2488a2e9d73105ffbfa /lldb/source | |
| parent | 7d69c259189050a6b160c6ce2cd5eda47270d3d1 (diff) | |
| download | bcm5719-llvm-b5c128b3c79eb3557996fabbb17031aba26ebba3.tar.gz bcm5719-llvm-b5c128b3c79eb3557996fabbb17031aba26ebba3.zip | |
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
Diffstat (limited to 'lldb/source')
| -rw-r--r-- | lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp | 4 | ||||
| -rw-r--r-- | lldb/source/Target/Target.cpp | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp index b97e4958291..6cf5c299627 100644 --- a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp +++ b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp @@ -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; diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp index d48df888381..f9590104498 100644 --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -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); } |

