about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2020-09-16 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2020-09-16 00:00:00 +0000
commitff1a9e406bfccefedb6c4f2cabc0c4d59ac947d4 (patch)
tree064dd0eb23cbda5866929ed0b4f07e784220d4cd /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent90b1f5ae59291dd69d72fad41a22277df19dc953 (diff)
downloadrust-ff1a9e406bfccefedb6c4f2cabc0c4d59ac947d4.tar.gz
rust-ff1a9e406bfccefedb6c4f2cabc0c4d59ac947d4.zip
Fix underflow when calculating the number of no-op jumps folded
When removing unwinds to no-op blocks and folding jumps to no-op blocks,
remove the unwind target first. Otherwise we cannot determine if target
has been already folded or not.

Previous implementation incorrectly assumed that all resume targets had
been folded already, occasionally resulting in an underflow:

remove_noop_landing_pads: removed 18446744073709551613 jumps and 3 landing pads
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions