We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 998f5fc commit 8198eb1Copy full SHA for 8198eb1
src/Data/BitCode/Reader/FromBits.hs
@@ -51,6 +51,7 @@ parseEncField (Enc Arr:op:xs) = do len <- parseVBR 6
51
fields <- replicateM len (fst <$> parseEncField [op])
52
return ((Len (fromIntegral len)):concat fields, xs)
53
parseEncField (Enc Char6:xs) = (,xs) . pure . Chr <$> parse
54
+parseEncField (op:_) = fail $ "*** Can not handle ops: " ++ show op
55
56
parseBlock :: Int -> AbbrevMap -> BitCodeReader BitCode
57
parseBlock n abbrevs = parseLocated (parseSubBlock n <|> parseUnabbrevRecord n <|> parseDefAbbrevRecord n <|> parseAbbrevRecord n abbrevs)
0 commit comments