llvm-project/compiler-rt/lib/xray
Wu, Yingcong 17718a2cff Move close() to the proper else block
`LogWriter::Close(LW)` is outside the null check if-else block, which, when `LW == nullptr`, will causing a NULL dereference.
I think the close() means to be in else block, which is when `LW != nullptr`.

Reviewed By: xgupta

Differential Revision: https://reviews.llvm.org/D145039
2023-03-01 19:09:11 +05:30
..
tests [compiler-rt] Switch from llvm-config to find_package(LLVM) 2022-11-02 07:17:42 +01:00
CMakeLists.txt
weak_symbols.txt
xray_AArch64.cpp
xray_allocator.h
xray_always_instrument.txt
xray_arm.cpp
xray_basic_flags.cpp
xray_basic_flags.h
xray_basic_flags.inc
xray_basic_logging.cpp
xray_basic_logging.h
xray_buffer_queue.cpp
xray_buffer_queue.h
xray_defs.h
xray_fdr_controller.h
xray_fdr_flags.cpp
xray_fdr_flags.h
xray_fdr_flags.inc
xray_fdr_log_records.h
xray_fdr_log_writer.h
xray_fdr_logging.cpp
xray_fdr_logging.h
xray_flags.cpp
xray_flags.h
xray_flags.inc
xray_function_call_trie.h
xray_hexagon.cpp
xray_init.cpp
xray_interface_internal.h [XRay] Unsupport version<2 sled entry 2022-12-28 18:08:30 -08:00
xray_interface.cpp
xray_log_interface.cpp
xray_mips.cpp
xray_mips64.cpp
xray_never_instrument.txt
xray_powerpc64.cpp
xray_powerpc64.inc
xray_profile_collector.cpp
xray_profile_collector.h
xray_profiling_flags.cpp
xray_profiling_flags.h
xray_profiling_flags.inc
xray_profiling.cpp Move close() to the proper else block 2023-03-01 19:09:11 +05:30
xray_recursion_guard.h
xray_segmented_array.h
xray_trampoline_AArch64.S
xray_trampoline_arm.S
xray_trampoline_hexagon.S
xray_trampoline_mips.S
xray_trampoline_mips64.S
xray_trampoline_powerpc64_asm.S
xray_trampoline_powerpc64.cpp
xray_trampoline_x86_64.S
xray_tsc.h
xray_utils.cpp
xray_utils.h
xray_x86_64.cpp
xray_x86_64.inc