Commits

Brian Gesiak committed 2e5f1649d65
[Frontend] Nicer assert when -dump-parse foo.sil Invoking the following command to `-dump-parse` a file containing SIL triggers an assertion from within the Swift compiler frontend: ``` swiftc -dump-parse foo.sil ``` The assertion is not coupled with a description of what went wrong. It turns out the frontend doesn't support `-dump-parse` for SIL files, although `swiftc -help` wouldn't inform users of that: ``` -dump-parse Parse input file(s) and dump AST(s) ``` As a result, a user may invoke `-dump-parse` on a SIL file and not know what went wrong. Add an assertion message to inform the user that only Swift code may be parsed. (`IFK_Swift_Library` here is for the case where `swiftc -parse-as-library -dump-parse foo.swift` is invoked.)