summaryrefslogtreecommitdiff
path: root/compiler/GHC/CmmToAsm
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2021-09-29 12:40:31 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-10-02 05:21:07 -0400
commit8b3d98ff376355317c64763cf619b1c41281b0d9 (patch)
treee461bdaa81a7d1037abc239887876704bb30c30b /compiler/GHC/CmmToAsm
parent4bdafb48b40afd1eb185c1312302e5759f796472 (diff)
downloadhaskell-8b3d98ff376355317c64763cf619b1c41281b0d9.tar.gz
Don't use FastString for UTF-8 encoding only
Diffstat (limited to 'compiler/GHC/CmmToAsm')
-rw-r--r--compiler/GHC/CmmToAsm/Dwarf/Types.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/CmmToAsm/Dwarf/Types.hs b/compiler/GHC/CmmToAsm/Dwarf/Types.hs
index 9b9015fab9..f8f0ae5c44 100644
--- a/compiler/GHC/CmmToAsm/Dwarf/Types.hs
+++ b/compiler/GHC/CmmToAsm/Dwarf/Types.hs
@@ -600,7 +600,7 @@ pprString str
= pprString' $ hcat $ map escapeChar $
if str `lengthIs` utf8EncodedLength str
then str
- else map (chr . fromIntegral) $ BS.unpack $ bytesFS $ mkFastString str
+ else map (chr . fromIntegral) $ BS.unpack $ utf8EncodeString str
-- | Escape a single non-unicode character
escapeChar :: Char -> SDoc