C#: Include dup instructions in CIL ExprMissingType consistency test

This commit is contained in:
Tom Hvitved
2021-12-06 14:37:07 +01:00
parent 6b1ac73a46
commit 60c0bcf8f7
2 changed files with 13 additions and 1 deletions

View File

@@ -612,7 +612,7 @@ class ExprMissingType extends InstructionViolation {
not instruction instanceof Opcodes::Ldvirtftn and
not instruction instanceof Opcodes::Arglist and
not instruction instanceof Opcodes::Refanytype and
instruction.getPushCount() = 1 and
instruction.getPushCount() >= 1 and
count(instruction.getType()) != 1
}

File diff suppressed because one or more lines are too long