forked from OSchip/llvm-project
[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:
parent
0e82895826
commit
4201ed2ea3
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue