summaryrefslogtreecommitdiff
path: root/tcg/tcg-op.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2018-11-26 12:47:28 -0800
committerRichard Henderson <richard.henderson@linaro.org>2018-12-26 06:40:27 +1100
commitd88a117eaa39b1d0eb1a79fe84c81840a39eb233 (patch)
treee586a2c98775f5e56d3f9a0614efb3a12456eb68 /tcg/tcg-op.h
parent15d7409260498505e991e7b9d87118627165e613 (diff)
downloadqemu-d88a117eaa39b1d0eb1a79fe84c81840a39eb233.zip
tcg: Reference count labels
Increment when adding branches, and decrement when removing them. Reviewed-by: Emilio G. Cota <cota@braap.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/tcg-op.h')
-rw-r--r--tcg/tcg-op.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tcg/tcg-op.h b/tcg/tcg-op.h
index db4e9188f4..7007ec0d4d 100644
--- a/tcg/tcg-op.h
+++ b/tcg/tcg-op.h
@@ -260,6 +260,7 @@ static inline void gen_set_label(TCGLabel *l)
static inline void tcg_gen_br(TCGLabel *l)
{
+ l->refs++;
tcg_gen_op1(INDEX_op_br, label_arg(l));
}