match ldflda too lol

This commit is contained in:
JohnCorby 2022-01-13 23:42:47 -08:00
parent b209bb6999
commit 59572d19fb

View File

@ -68,7 +68,7 @@ namespace QSBTests
Func<Instruction, bool> matches = useType switch
{
UseType.Store => x => x.MatchStfld(out var f) && f.GenericEq(field),
UseType.Load => x => x.MatchLdfld(out var f) && f.GenericEq(field),
UseType.Load => x => (x.MatchLdfld(out var f) || x.MatchLdflda(out f)) && f.GenericEq(field),
_ => throw new ArgumentOutOfRangeException(nameof(useType), useType, null)
};