X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FnativeGen%2FRegArchBase.hs;h=4709b4caa9b59fb918bebbf2b96d4d7792af4eac;hb=97169c5dd31537b28f5f8ad08cd6cdf82c1ecefd;hp=eaa0488d46a7a1f182da47a5a5aa7c4c55b90669;hpb=17b297d97d327620ed6bfab942f8992b2446f1bf;p=ghc-hetmet.git diff --git a/compiler/nativeGen/RegArchBase.hs b/compiler/nativeGen/RegArchBase.hs index eaa0488..4709b4c 100644 --- a/compiler/nativeGen/RegArchBase.hs +++ b/compiler/nativeGen/RegArchBase.hs @@ -12,13 +12,6 @@ -- This code is here because we can test the architecture specific code against it. -- -{-# OPTIONS_GHC -w #-} --- The above warning supression flag is a temporary kludge. --- While working on this module you are encouraged to remove it and fix --- any warnings in the module. See --- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings --- for details - module RegArchBase ( RegClass(..), Reg(..), @@ -71,7 +64,7 @@ instance Uniquable Reg where = mkUnique 'S' $ fromEnum s * 10000 + fromEnum c * 1000 + i - getUnique (RegSub s (RegSub c _)) + getUnique (RegSub _ (RegSub _ _)) = error "RegArchBase.getUnique: can't have a sub-reg of a sub-reg." -- | A subcomponent of another register