This commit is contained in:
Ralf Jung 2017-07-31 16:15:37 -07:00
parent 09cbe588c3
commit 26ca0d1b3a

View File

@ -163,8 +163,8 @@ impl MirPass for AddValidation {
ValidationOperand { lval, ty, re, mutbl }
};
// Emit an Acquire at the beginning of the given block. If we are in restricted emission mode
// (mir_emit_validate=1), also emit a Release immediately after the Acquire.
// Emit an Acquire at the beginning of the given block. If we are in restricted emission
// mode (mir_emit_validate=1), also emit a Release immediately after the Acquire.
let emit_acquire = |block: &mut BasicBlockData<'tcx>, source_info, operands: Vec<_>| {
if operands.len() == 0 {
return; // Nothing to do