From 80858d909be0915b2f0c0202dac33b9627c7a405 Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 18 Dec 2025 20:26:52 +0100 Subject: ir: move cls2load to interface There's plenty of code duplication like this around I'm looking to reduce. --- ir/regalloc.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'ir/regalloc.c') diff --git a/ir/regalloc.c b/ir/regalloc.c index 030dbf0..2176a02 100644 --- a/ir/regalloc.c +++ b/ir/regalloc.c @@ -1071,10 +1071,6 @@ devirt(struct rega *ra, struct block *blk) assert(naddr < 2); for (int i = 0; i < nargref; ++i) { - static uchar cls2load[] = { - [KI32] = Oloads32, [KI64] = Oloadi64, [KF32] = Oloadf32, [KF64] = Oloadf64, [KPTR] = 0 - }; - cls2load[KPTR] = targ_64bit ? Oloadi64 : Oloads32; union ref *r = argref[i]; int tr; if (r->t == RTMP) { -- cgit v1.2.3