1
Fork 0

Clarify a comment.

The "as" is equivalent to "because", but I originally read it more like
"when", which was confusing.
This commit is contained in:
Nicholas Nethercote 2024-08-30 13:51:59 +10:00
parent 48064d4498
commit baa16d2471

View file

@ -122,7 +122,7 @@ impl<'tcx> crate::MirPass<'tcx> for GVN {
let param_env = tcx.param_env_reveal_all_normalized(body.source.def_id());
let ssa = SsaLocals::new(tcx, body, param_env);
// Clone dominators as we need them while mutating the body.
// Clone dominators because we need them while mutating the body.
let dominators = body.basic_blocks.dominators().clone();
let mut state = VnState::new(tcx, body, param_env, &ssa, &dominators, &body.local_decls);