Skip to content

Commit f783b3f

Browse files
committed
l2s: fix generic-generic ptr ops
1 parent 28453ef commit f783b3f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/frontends/llvm/l2s_instr.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,8 @@ EmittedInstr convert_instruction(Parser* p, Node* fn_or_bb, BodyBuilder* b, LLVM
305305
case AsGlobalPhysical:
306306
op = convert_op;
307307
break;
308+
case AsGeneric: // generic-to-generic isn't a conversion.
309+
break;
308310
default: {
309311
warn_print("Cannot cast address space %s to Generic! Ignoring.\n", get_address_space_name(src_t->payload.ptr_type.address_space));
310312
r = quote_helper(a, singleton(src));

0 commit comments

Comments
 (0)