diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2018-10-08 20:20:34 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2018-10-08 20:20:34 +0000 |
commit | 2dd5335204da085718e926d839f3200dc5227fc9 (patch) | |
tree | 3a60541f65532e8ad7094912247e87943a8fb7b9 /llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp | |
parent | ff9f02580dcc33bb2d1e313800c4fafd4b5e2654 (diff) | |
download | llvm-2dd5335204da085718e926d839f3200dc5227fc9.zip llvm-2dd5335204da085718e926d839f3200dc5227fc9.tar.gz llvm-2dd5335204da085718e926d839f3200dc5227fc9.tar.bz2 |
Do the math in uniform_int_distribution::operator() as unsigned to prevent UB when overflowing. Also add a UBSAN notification that we're ffine with unsigned overflow. This fixes PR#32617. Thanks to Vincent & Christoph for their help with this issue.
llvm-svn: 343996
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp')
0 files changed, 0 insertions, 0 deletions