Just checking for LiteralExpr is too broad, because Sema doesn't know what to do with RegexLiteralExpr for example.