HomePhabricator

Add missing null pointer check in -ftime-trace code

Authored by rnk on Oct 4 2019, 11:57 AM.

Description

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

Details

Committed
rnkOct 4 2019, 11:57 AM
Parents
rGce452b1ca9fd: [libc++abi] Link against libSystem on Apple platforms
Branches
Unknown
Tags
Unknown