produce diagnostics with source locations before the diagnostics system is ready for them. llvm-svn: 226882