gallivm: fix bug in nested conditionals