about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorDan Gohman <sunfish@mozilla.com>2017-11-10 15:32:06 -0800
committerDan Gohman <sunfish@mozilla.com>2017-11-10 15:32:06 -0800
commit626d93b86d3fe0c3f12f0299d72a8f65185ec268 (patch)
treee92864422d9b6e46ab3cc4982c22e849ab41da71 /src/rustllvm/PassWrapper.cpp
parent89652d66c9bd430e9c59bf5167f30c2016ae1e09 (diff)
downloadrust-626d93b86d3fe0c3f12f0299d72a8f65185ec268.tar.gz
rust-626d93b86d3fe0c3f12f0299d72a8f65185ec268.zip
Update the "[run-make] run-make/intrinsic-unreachable" test.
With rustc now emitting "ud2" on unreachable code, a "return nothing"
sequence may take the same number of lines as an "unreachable" sequence
in assembly code. This test is testing that intrinsics::unreachable()
works by testing that it reduces the number of lines in the assembly
code. Fix it by adding a return value, which requires an extra
instruction in the reachable case, which provides the test what it's
looking for.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions