]> granicus.if.org Git - clang/commit
Add missing null pointer check in -ftime-trace code
authorReid Kleckner <rnk@google.com>
Fri, 4 Oct 2019 18:57:01 +0000 (18:57 +0000)
committerReid Kleckner <rnk@google.com>
Fri, 4 Oct 2019 18:57:01 +0000 (18:57 +0000)
commita22db94ad12e8ee1d7d6733329229d6b8047cba5
tree48252eab3180e36293019f442575ba163ebd0ea0
parentf90bb31d28b576641ed53a66d16fcd602ed4668f
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
tools/driver/cc1_main.cpp