diff options
| author | Alex Bennée | 2016-09-30 23:30:55 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2016-10-04 10:00:25 +0200 |
| commit | 550276ae0a88851edda2cb7fcdd64256dbb8e314 (patch) | |
| tree | b37d8e9a96758b52071435598afa5fa426d269cc | |
| parent | atomic.h: comment on use of atomic_read/set (diff) | |
| download | qemu-550276ae0a88851edda2cb7fcdd64256dbb8e314.tar.gz qemu-550276ae0a88851edda2cb7fcdd64256dbb8e314.tar.xz qemu-550276ae0a88851edda2cb7fcdd64256dbb8e314.zip | |
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: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20160930213106.20186-5-alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| -rw-r--r-- | tcg/optimize.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tcg/optimize.c b/tcg/optimize.c index 9998ac7413..0f1349086b 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -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 |
