about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2022-06-19 18:11:39 -0700
committerJosh Triplett <josh@joshtriplett.org>2022-10-15 00:35:38 +0100
commite25fe564d1ea62a1018f603cac39f51dc6f11048 (patch)
tree78e87354bc70d28dee48aceffc3452d0a22d5ed4 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent326ef470a8b379a180d6dc4bbef08990698a737a (diff)
downloadrust-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