summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/UnwindAssembly/x86/x86AssemblyInspectionEngine.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2019-06-04 22:46:20 +0000
committerJason Molenda <jmolenda@apple.com>2019-06-04 22:46:20 +0000
commitc93b99589f7ef45d2f85f459731d0cbc4a55b005 (patch)
treeacf2b1da9e69b0d5b5a637363280c87afd1d7ec1 /lldb/source/Plugins/UnwindAssembly/x86/x86AssemblyInspectionEngine.cpp
parent375d5fb9ca22ba40f8b10660de66c2491630ba21 (diff)
downloadbcm5719-llvm-c93b99589f7ef45d2f85f459731d0cbc4a55b005.tar.gz
bcm5719-llvm-c93b99589f7ef45d2f85f459731d0cbc4a55b005.zip
Call abs to avoid signed/unsigned comparison warning.
llvm-svn: 362557
Diffstat (limited to 'lldb/source/Plugins/UnwindAssembly/x86/x86AssemblyInspectionEngine.cpp')
-rw-r--r--lldb/source/Plugins/UnwindAssembly/x86/x86AssemblyInspectionEngine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/UnwindAssembly/x86/x86AssemblyInspectionEngine.cpp b/lldb/source/Plugins/UnwindAssembly/x86/x86AssemblyInspectionEngine.cpp
index af54115c2db..34d08167a16 100644
--- a/lldb/source/Plugins/UnwindAssembly/x86/x86AssemblyInspectionEngine.cpp
+++ b/lldb/source/Plugins/UnwindAssembly/x86/x86AssemblyInspectionEngine.cpp
@@ -819,7 +819,7 @@ bool x86AssemblyInspectionEngine::local_branch_p (
int offset;
if (pc_rel_branch_or_jump_p (instruction_length, offset) && offset != 0) {
addr_t next_pc_value = current_func_text_offset + instruction_length;
- if (offset < 0 && -offset > current_func_text_offset) {
+ if (offset < 0 && abs (offset) > current_func_text_offset) {
// Branch target is before the start of this function
return false;
}
OpenPOWER on IntegriCloud