Change an assert to a bail-out condition. I found that it _can_ happen to have a function without a debug scope. In such a case even printing the SIL crashed. Be a bit more tolerant.
addFile
-interface-compiler-version
Version
IsForEmbedded
AvailableAttr