Skip to content

Commit

Permalink
Shorten comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ptersilie committed May 29, 2020
1 parent bff4293 commit 35abcb1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions yktrace/src/tir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,10 +406,7 @@ impl VarRenamer {
if &place.local == &Local(0) {
// Replace the default return variable $0 with the variable in the outer context where
// the return value will end up after leaving the function. This saves us an
// instruction when we compile the trace. More importantly however, this guards us
// against a future optimisation in rustc that allows SIR to assign to $0 multiple
// times and at the beginning of a block, which could lead to another function
// overwriting its value (see https://github.com/rust-lang/rust/pull/72205).
// instruction when we compile the trace.
if let Some(v) = self.returns.last() {
v.clone()
} else {
Expand Down

0 comments on commit 35abcb1

Please sign in to comment.