diff options
| author | 2025-12-18 20:26:52 +0100 | |
|---|---|---|
| committer | 2025-12-18 20:26:52 +0100 | |
| commit | 80858d909be0915b2f0c0202dac33b9627c7a405 (patch) | |
| tree | 8f27b4f0ba2566062fc7e61a2aa90c75817ff68e /ir/regalloc.c | |
| parent | c4d20300e3b7d63bae20070e0d69af909b55d01b (diff) | |
ir: move cls2load to interface
There's plenty of code duplication like this around I'm looking to
reduce.
Diffstat (limited to 'ir/regalloc.c')
| -rw-r--r-- | ir/regalloc.c | 4 |
1 files changed, 0 insertions, 4 deletions
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) { |