about summary refs log tree commit diff
path: root/src/test/codegen
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <ariel.byd@gmail.com>2017-02-26 16:21:08 +0200
committerAriel Ben-Yehuda <ariel.byd@gmail.com>2017-03-03 13:54:18 +0200
commit906c06a2f6add77531c08dfd4014e7c65c1743b2 (patch)
treee551f93b29cc14efb0f68cb252c89945c18d4a93 /src/test/codegen
parent6755fb8ba2300a121cb14bd79327c3eb730bc55d (diff)
downloadrust-906c06a2f6add77531c08dfd4014e7c65c1743b2.tar.gz
rust-906c06a2f6add77531c08dfd4014e7c65c1743b2.zip
make operands live to the end of their containing expression
In MIR construction, operands need to live exactly until they are used,
which is during the (sub)expression that made the call to `as_operand`.

Before this PR, operands lived until the end of the temporary scope,
which was sometimes unnecessarily longer and sometimes too short.

Fixes #38669.
Diffstat (limited to 'src/test/codegen')
0 files changed, 0 insertions, 0 deletions