rust/compiler/rustc_passes
Yuki Okushi ae95005ecc
Rollup merge of #77976 - oliviacrain:issue-77915-fix, r=matthewjasper
Mark inout asm! operands as used in liveness pass

Variables used in `inout` operands in inline assembly (that is, they're used as both input and output to some arbitrary assembly instruction) are being marked as read and written, but are not marked as being used in the RWU table during the liveness pass. This can result in such expressions triggering an unused variable lint warning. This is incorrect behavior- reads without uses are currently only used for compound assignments. We conservatively assume that an `inout` operand is being read and used in the context of the assembly instruction.

Closes #77915
2020-10-22 09:45:33 +09:00
..
src Rollup merge of #77976 - oliviacrain:issue-77915-fix, r=matthewjasper 2020-10-22 09:45:33 +09:00
Cargo.toml liveness: Use newtype_index for Variable and LiveNode 2020-09-26 16:44:41 +02:00