Skip to content

Commit 28453ef

Browse files
committed
mem2reg: remove broken assert
1 parent a63635a commit 28453ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shady/passes/opt_mem2reg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ static void handle_bb(Context* ctx, const Node* old) {
523523
log_node(DEBUG, ptr);
524524
debug_print(" has a known value in all predecessors! Turning it into a new parameter.\n");
525525

526-
assert(!is_qualified_type_uniform(source->type));
526+
// assert(!is_qualified_type_uniform(source->type));
527527
const Node* param = var(a, qualified_type_helper(source->type, false), unique_name(a, "ssa_phi"));
528528
params = append_nodes(a, params, param);
529529
ptrs = append_nodes(ctx->rewriter.src_arena, ptrs, ptr);

0 commit comments

Comments
 (0)