From d1a55d95594dcf634508c4b65e9cbcadfc1e1bd0 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sun, 14 Jul 2019 22:58:33 -0700 Subject: [PATCH] lima/ppir: Fix assert condition in ppir_codegen_encode_branch. Fixes: af0de6b91c0b ("lima/ppir: implement discard and discard_if") Reported-by: Coverity Scan Signed-off-by: Vinson Lee Reviewed-by: Vasily Khoruzhick --- src/gallium/drivers/lima/ir/pp/codegen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/lima/ir/pp/codegen.c b/src/gallium/drivers/lima/ir/pp/codegen.c index 49e91a87a38..09cf5e623bd 100644 --- a/src/gallium/drivers/lima/ir/pp/codegen.c +++ b/src/gallium/drivers/lima/ir/pp/codegen.c @@ -533,7 +533,7 @@ static void ppir_codegen_encode_branch(ppir_node *node, void *code) return; } - assert(node->op = ppir_op_branch); + assert(node->op == ppir_op_branch); branch = ppir_node_to_branch(node); b->branch.unknown_0 = 0x0; -- 2.30.2