[x86-64] Use `//` for integer division in the target definition.

This forces integer division and works with python 2 and python 3.

<rdar://problem/52073911>

llvm-svn: 364465
This commit is contained in:
Davide Italiano 2019-06-26 19:51:57 +00:00
parent 0e82895826
commit 4201ed2ea3
1 changed files with 1 additions and 1 deletions

View File

@ -744,7 +744,7 @@ def get_target_definition():
# info
if 'slice' not in reg_info and 'composite' not in reg_info:
reg_info['offset'] = offset
offset += reg_info['bitsize'] / 8
offset += reg_info['bitsize'] // 8
# Set the GCC/DWARF register number for this register if it has one
reg_num = get_reg_num(name_to_gcc_dwarf_regnum, reg_name)