Commit c8b41f85 authored by simonpj@microsoft.com's avatar simonpj@microsoft.com
Browse files

Add better panic message in getSRTInfo (Trac #1973)

parent 8f47436d
......@@ -994,6 +994,7 @@ getSRTInfo = do
-- TODO: Should we panic in this case?
-- Someone obviously thinks there should be an SRT
NoSRT -> return NoC_SRT
SRTEntries {} -> panic "getSRTInfo: SRTEntries. Perhaps you forgot to run SimplStg?"
SRT off len bmp
| len > hALF_WORD_SIZE_IN_BITS || bmp == [fromIntegral srt_escape]
-> do id <- newUnique
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment