diff options
| author | Fangrui Song <maskray@google.com> | 2019-06-05 01:49:06 +0000 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2019-06-05 01:49:06 +0000 |
| commit | ff918fb487e3f3a161217bd855889d3ea7a9a6e8 (patch) | |
| tree | c614d995440832bccaf2d84b366e7a0fbb4a7bfc | |
| parent | f090e6f7b6bec197caa288422f24160cbbbbe554 (diff) | |
| download | bcm5719-llvm-ff918fb487e3f3a161217bd855889d3ea7a9a6e8.tar.gz bcm5719-llvm-ff918fb487e3f3a161217bd855889d3ea7a9a6e8.zip | |
Fix -Wsign-compare by explicit cast after r362557
llvm-svn: 362570
| -rw-r--r-- | lldb/source/Plugins/UnwindAssembly/x86/x86AssemblyInspectionEngine.cpp | 2 |
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 34d08167a16..43041ca1bb2 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 && abs (offset) > current_func_text_offset) { + if (offset < 0 && addr_t(-offset) > current_func_text_offset) { // Branch target is before the start of this function return false; } |

