summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang/slang_codegen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/shader/slang/slang_codegen.c')
-rw-r--r--src/mesa/shader/slang/slang_codegen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c
index 3b58ee4cbd..4623b6b5bc 100644
--- a/src/mesa/shader/slang/slang_codegen.c
+++ b/src/mesa/shader/slang/slang_codegen.c
@@ -3171,7 +3171,7 @@ _slang_gen_for_without_continue(slang_assemble_ctx *A, slang_operation *oper)
/* declare: bool _condFlag = true */
{
- slang_operation *condDecl;
+ slang_operation *condDecl = slang_oper_child(top, 0);
slang_generate_declaration(A, top->locals, condDecl,
SLANG_SPEC_BOOL, "_condFlag", GL_TRUE);
}