Skip to content

Commit 7853f63

Browse files
committed
lower_cf_instrs: fix scope segfault
1 parent 4d07055 commit 7853f63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shady/passes/lower_cf_instrs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ static const Node* process_node(Context* ctx, const Node* node) {
156156
if (ctx->disable_lowering)
157157
return recreate_node_identity(&ctx->rewriter, node);
158158

159-
CFNode* cfnode = ctx->abs ? scope_lookup(ctx->scope, ctx->abs) : NULL;
159+
CFNode* cfnode = ctx->scope ? scope_lookup(ctx->scope, ctx->abs) : NULL;
160160
switch (node->tag) {
161161
case Let_TAG: return process_let(ctx, node);
162162
case Yield_TAG: {

0 commit comments

Comments
 (0)