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)
commitcfe3bf89c2962d5f121450659669b9d469dc8b97
tree104df98f8104099af8f8203242d8218507f6f74c
parentce452b1ca9fdb12604db3dc2059246e189e55d7b
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.

llvm-svn: 373771
clang/tools/driver/cc1_main.cpp