Commit 550276ae authored by Alex Bennée's avatar Alex Bennée Committed by Paolo Bonzini
Browse files

tcg/optimize: move default return out of if statement



This is to appease sanitizer builds which complain that:

  "error: control reaches end of non-void function"

Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
Reviewed-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20160930213106.20186-5-alex.bennee@linaro.org>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent e653bc6b
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -468,9 +468,8 @@ static TCGArg do_constant_folding_cond(TCGOpcode op, TCGArg x,
        default:
            return 2;
        }
    } else {
        return 2;
    }
    return 2;
}

/* Return 2 if the condition can't be simplified, and the result