]> sourceware.org Git - systemtap.git/commitdiff
stapbpf: fix evaluation of comparison expressions.
authorAaron Merey <amerey@redhat.com>
Thu, 5 Oct 2017 17:22:36 +0000 (13:22 -0400)
committerAaron Merey <amerey@redhat.com>
Thu, 5 Oct 2017 17:49:32 +0000 (13:49 -0400)
* bpf-translate.cxx (bpf_unparser::emit_cond): correct the order
  of arguments in the call to mk_jcond().

bpf-translate.cxx

index 42d686d637b496194d752fb7d279b94bdd74505e..371bb30f5c1a6808db81f0a0efed87e98a29f9de 100644 (file)
@@ -320,7 +320,7 @@ bpf_unparser::emit_cond(expression *e, block *t_dest, block *f_dest)
        }
     }
 
-  this_prog.mk_jcond (this_ins, cond, s1, s0, t_dest, f_dest);
+  this_prog.mk_jcond (this_ins, cond, s0, s1, t_dest, f_dest);
   clear_block ();
 }
 
This page took 1.397557 seconds and 5 git commands to generate.