Add dfg.inst_args(_mut) methods.
A shortcut for calling arguments() directly that goes with the existing inst_results() method.
This commit is contained in:
@@ -196,7 +196,7 @@ impl<'a> Verifier<'a> {
|
||||
fn verify_entity_references(&self, inst: Inst) -> Result<()> {
|
||||
use ir::instructions::InstructionData::*;
|
||||
|
||||
for &arg in self.func.dfg[inst].arguments(&self.func.dfg.value_lists) {
|
||||
for &arg in self.func.dfg.inst_args(inst) {
|
||||
self.verify_value(inst, arg)?;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user