[Prover][trivial] Fix generation of IsValid
for variants with no fields
#29846
Loading
IsValid
for variants with no fields
#29846