diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2022-06-19 18:11:39 -0700 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2022-10-15 00:35:38 +0100 |
| commit | e25fe564d1ea62a1018f603cac39f51dc6f11048 (patch) | |
| tree | 78e87354bc70d28dee48aceffc3452d0a22d5ed4 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 326ef470a8b379a180d6dc4bbef08990698a737a (diff) | |
| download | rust-e25fe564d1ea62a1018f603cac39f51dc6f11048.tar.gz rust-e25fe564d1ea62a1018f603cac39f51dc6f11048.zip | |
Make is_terminal fail fast if a process has no console at all
If a process has no console, it'll have NULL in place of a console handle, so return early with `false` in that case without making any OS calls.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
