Skip to content

Commit f0d164b

Browse files
committed
fix: use explicit import in PPC/CodeGen.hs to avoid ambiguity
The GADT refactoring of Reg/Target exports RegOps(..) which includes mkVirtualReg as a typeclass method. PPC/CodeGen.hs imports both PPC.Regs (which has its own mkVirtualReg) and Reg.Target, creating an ambiguous reference. Fix by using an explicit import list for Reg.Target, importing only targetClassOfReg which is the only function actually used.
1 parent 233a623 commit f0d164b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

compiler/GHC/CmmToAsm/PPC/CodeGen.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import GHC.CmmToAsm.Format
4343
import GHC.CmmToAsm.Config
4444
import GHC.Platform.Reg.Class.Unified
4545
import GHC.Platform.Reg
46-
import GHC.CmmToAsm.Reg.Target
46+
import GHC.CmmToAsm.Reg.Target (targetClassOfReg)
4747
import GHC.Platform
4848

4949
-- Our intermediate code:

0 commit comments

Comments
 (0)