summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2015-02-13 08:16:15 +0000
committerChandler Carruth <chandlerc@gmail.com>2015-02-13 08:16:15 +0000
commitd066d3a7b4cf6b3fbc61290387ca14416bc70a76 (patch)
tree6dec5b775b4e991083cb2577f8f1f048881527d4
parent40927d0dcd1c50dfa68b6f163333268459179e43 (diff)
downloadbcm5719-llvm-d066d3a7b4cf6b3fbc61290387ca14416bc70a76.tar.gz
bcm5719-llvm-d066d3a7b4cf6b3fbc61290387ca14416bc70a76.zip
Fix the last two warnings I see on Linx building 'lldb': mismatched
signed and unsigned types in comparisons. For the text offset, use the addr_t type that is used elsewhere to get these kinds of offsets, and which it is being compared against. This seems to make things more consistent. For the other, the numbers are clearly small and uninteresting, so just cast them to the most boring 'int' type. llvm-svn: 229085
-rw-r--r--lldb/source/Plugins/UnwindAssembly/x86/UnwindAssembly-x86.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/UnwindAssembly/x86/UnwindAssembly-x86.cpp b/lldb/source/Plugins/UnwindAssembly/x86/UnwindAssembly-x86.cpp
index dbf37d8a4de..ecef2e39132 100644
--- a/lldb/source/Plugins/UnwindAssembly/x86/UnwindAssembly-x86.cpp
+++ b/lldb/source/Plugins/UnwindAssembly/x86/UnwindAssembly-x86.cpp
@@ -615,7 +615,7 @@ AssemblyParse_x86::get_non_call_site_unwind_plan (UnwindPlan &unwind_plan)
{
UnwindPlan::RowSP row(new UnwindPlan::Row);
m_cur_insn = m_func_bounds.GetBaseAddress ();
- int current_func_text_offset = 0;
+ addr_t current_func_text_offset = 0;
int current_sp_bytes_offset_from_cfa = 0;
UnwindPlan::Row::RegisterLocation initial_regloc;
Error error;
@@ -746,7 +746,7 @@ AssemblyParse_x86::get_non_call_site_unwind_plan (UnwindPlan &unwind_plan)
saved_registers[machine_regno] = false;
row->RemoveRegisterInfo (lldb_regno);
- if (machine_regno == m_machine_fp_regnum)
+ if (machine_regno == (int)m_machine_fp_regnum)
{
row->SetCFARegister (m_lldb_sp_regnum);
}
OpenPOWER on IntegriCloud