summaryrefslogtreecommitdiff
path: root/compiler/nativeGen/RegAlloc/Linear/X86/FreeRegs.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/nativeGen/RegAlloc/Linear/X86/FreeRegs.hs')
-rw-r--r--compiler/nativeGen/RegAlloc/Linear/X86/FreeRegs.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/nativeGen/RegAlloc/Linear/X86/FreeRegs.hs b/compiler/nativeGen/RegAlloc/Linear/X86/FreeRegs.hs
index eedaca8cc0..2b69da0093 100644
--- a/compiler/nativeGen/RegAlloc/Linear/X86/FreeRegs.hs
+++ b/compiler/nativeGen/RegAlloc/Linear/X86/FreeRegs.hs
@@ -28,7 +28,7 @@ getFreeRegs cls f = go f 0
where go 0 _ = []
go n m
- | n .&. 1 /= 0 && regClass (RealReg m) == cls
+ | n .&. 1 /= 0 && regClass (regSingle m) == cls
= m : (go (n `shiftR` 1) $! (m+1))
| otherwise