From f8f416fb8f2ce79d0cbf980ee53ddb68fac850ca Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 16 Oct 2015 18:16:10 +0200 Subject: preliminary description of kdbus syscalls --- prog/mutation.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'prog/mutation.go') diff --git a/prog/mutation.go b/prog/mutation.go index 022bd513e..fd4cef209 100644 --- a/prog/mutation.go +++ b/prog/mutation.go @@ -149,6 +149,8 @@ func (p *Prog) Mutate(rs rand.Source, ncalls int, ct *ChoiceTable) { } case sys.LenType: panic("bad arg returned by mutationArgs: LenType") + case sys.ConstType: + panic("bad arg returned by mutationArgs: ConstType") default: panic(fmt.Sprintf("bad arg returned by mutationArgs: %#v, type=%#v", *arg, arg.Type)) } @@ -301,6 +303,9 @@ func mutationArgs(c *Call) (args, bases []*Arg, parents []*[]*Arg) { case sys.LenType: // Size is updated when the size-of arg change. return + case sys.ConstType: + // Well, this is const. + return } if arg.Dir == DirOut { return -- cgit mrf-deployment