commit | a22db94ad12e8ee1d7d6733329229d6b8047cba5 | [log] [tgz] |
---|---|---|
author | Reid Kleckner <rnk@google.com> | Fri Oct 04 18:57:01 2019 +0000 |
committer | Reid Kleckner <rnk@google.com> | Fri Oct 04 18:57:01 2019 +0000 |
tree | 48252eab3180e36293019f442575ba163ebd0ea0 | |
parent | f90bb31d28b576641ed53a66d16fcd602ed4668f [diff] |
Add missing null pointer check in -ftime-trace code createOutputFile diagnoses the error for the caller already, so recover by not writing the output. Fixes PR43555 No test, since I couldn't think of a good, portable, simple way to make the regular -o output file writable, but outputfile.json not writable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373771 91177308-0d34-0410-b5e6-96231b3b80d8