sandbox/linux/bpf_dsl: eliminate implicit dependency on C++ compiler behavior
For the expression F(G(), H()), C++ does not guarantee whether G() or
H() will be evaluated first. Apparently the system compiler on Chrome
OS makes a different decision than on Ubuntu, which causes the golden
file tests introduced by https://crrev.com/
1306723002 (which were
generated on Ubuntu) to fail on Chrome OS.
Easy fix: rewrite the expression as
g = G()
h = H()
F(g, h)
to avoid any compiler behavior dependency.
BUG=529480
Review URL: https://codereview.chromium.org/
1327693005
Cr-Commit-Position: refs/heads/master@{#347838}