aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Utils.cpp
diff options
context:
space:
mode:
authorPetr Hosek <phosek@google.com>2021-03-29 10:49:55 -0700
committerPetr Hosek <phosek@google.com>2021-03-29 11:59:44 -0700
commitbc4d3ca7bd4401daafc22747ed952208cf18cba9 (patch)
tree2df090d8bdf83b2b070b96b0df3d163245dfa2c4 /llvm/lib/Transforms/Utils/Utils.cpp
parent45fd7c02afc444401802cb5f50bb4acb08d556e5 (diff)
downloadllvm-bc4d3ca7bd4401daafc22747ed952208cf18cba9.zip
llvm-bc4d3ca7bd4401daafc22747ed952208cf18cba9.tar.gz
llvm-bc4d3ca7bd4401daafc22747ed952208cf18cba9.tar.bz2
[libcxx] Use integer division
In Python 3, math.floor returns int when both arguments are ints. In Python 2, math.floor returns float. This leads to a failure because the result of math.floor is used as an array index. While Python 2 is on its way out, it's still used in some places so use an integer division instead. Differential Revision: https://reviews.llvm.org/D99520
Diffstat (limited to 'llvm/lib/Transforms/Utils/Utils.cpp')
0 files changed, 0 insertions, 0 deletions