Fix build on PPC: Add some missing parentheses
authorIan Lynagh <igloo@earth.li>
Sun, 27 Apr 2008 10:35:45 +0000 (10:35 +0000)
committerIan Lynagh <igloo@earth.li>
Sun, 27 Apr 2008 10:35:45 +0000 (10:35 +0000)
compiler/nativeGen/PprMach.hs

index a9621d4..38267d0 100644 (file)
@@ -601,7 +601,7 @@ pprAddr (AddrRegImm r1 imm)
 
 #if powerpc_TARGET_ARCH
 pprAddr (AddrRegReg r1 r2)
-  = pprReg r1 <+> ptext sLit ", " <+> pprReg r2
+  = pprReg r1 <+> ptext (sLit ", ") <+> pprReg r2
 
 pprAddr (AddrRegImm r1 (ImmInt i)) = hcat [ int i, char '(', pprReg r1, char ')' ]
 pprAddr (AddrRegImm r1 (ImmInteger i)) = hcat [ integer i, char '(', pprReg r1, char ')' ]