commit | db309ae1bfa7c30ed3b2b9e59a316b8fef2e56b6 | [log] [tgz] |
---|---|---|
author | Richard Smith <richard-llvm@metafoo.co.uk> | Tue Aug 21 03:11:53 2012 +0000 |
committer | Richard Smith <richard-llvm@metafoo.co.uk> | Tue Aug 21 03:11:53 2012 +0000 |
tree | f80346a7a9572cbd01c20ecf9dbb19e8fe37f9d6 | |
parent | 0a7dd788dbef975f35f273c7ab913f480f7edd60 [diff] |
Avoid binding a reference to a dereferenced pointer in diagnostic serialization if a diagnostic is emitted outside of any source file. The fix mirrors the corresponding code in TextDiagnosticPrinter. This required moving the functional parts of SDiagRenderer into SDiagWriter so they can be reused in the non-rendering codepath. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162253 91177308-0d34-0410-b5e6-96231b3b80d8