Author: jmolenda
Date: Tue Jun  4 15:46:20 2019
New Revision: 362557

URL: http://llvm.org/viewvc/llvm-project?rev=362557&view=rev
Log:
Call abs to avoid signed/unsigned comparison warning.

Modified:
    lldb/trunk/source/Plugins/UnwindAssembly/x86/x86AssemblyInspectionEngine.cpp

Modified: 
lldb/trunk/source/Plugins/UnwindAssembly/x86/x86AssemblyInspectionEngine.cpp
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/UnwindAssembly/x86/x86AssemblyInspectionEngine.cpp?rev=362557&r1=362556&r2=362557&view=diff
==============================================================================
--- 
lldb/trunk/source/Plugins/UnwindAssembly/x86/x86AssemblyInspectionEngine.cpp 
(original)
+++ 
lldb/trunk/source/Plugins/UnwindAssembly/x86/x86AssemblyInspectionEngine.cpp 
Tue Jun  4 15:46:20 2019
@@ -819,7 +819,7 @@ bool x86AssemblyInspectionEngine::local_
   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;
     }


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to