Call abs to avoid signed/unsigned comparison warning.
authorJason Molenda <jmolenda@apple.com>
Tue, 4 Jun 2019 22:46:20 +0000 (22:46 +0000)
committerJason Molenda <jmolenda@apple.com>
Tue, 4 Jun 2019 22:46:20 +0000 (22:46 +0000)
llvm-svn: 362557

lldb/source/Plugins/UnwindAssembly/x86/x86AssemblyInspectionEngine.cpp

index af54115..34d0816 100644 (file)
@@ -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;
     }