X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FnativeGen%2FRegArchBase.hs;h=4709b4caa9b59fb918bebbf2b96d4d7792af4eac;hb=aedb94f5f220b5e442b23ecc445fd38c8d9b6ba0;hp=86f0f0eeb541fde4b7b0a733d389000b78e03588;hpb=109e11fccf6b8351bc40e20bf4d0343eefcf85dc;p=ghc-hetmet.git diff --git a/compiler/nativeGen/RegArchBase.hs b/compiler/nativeGen/RegArchBase.hs index 86f0f0e..4709b4c 100644 --- a/compiler/nativeGen/RegArchBase.hs +++ b/compiler/nativeGen/RegArchBase.hs @@ -11,7 +11,7 @@ -- -- This code is here because we can test the architecture specific code against it. -- --- + module RegArchBase ( RegClass(..), Reg(..), @@ -64,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