1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/tools/llvm-c-test
Andus Yu 578aa28604 llvm-c-test avoid calling malloc(0)
Summary:
As explained in D63668, malloc(0) could return a null pointer. llvm-c-test does not handle this case correctly. Instead of calling malloc(0), avoid the operation altogether.

Authored By: andusy

Reviewers: hubert.reinterpretcast, xingxue, jasonliu, daltenty, cebowleratibm

Reviewed By: hubert.reinterpretcast

Subscribers: mehdi_amini, dexonsmith, jsji, llvm-commits

Tags: LLVM

Differential Revision: https://reviews.llvm.org/D63788

llvm-svn: 365144
2019-07-04 14:36:34 +00:00
..
attributes.c llvm-c-test avoid calling malloc(0) 2019-07-04 14:36:34 +00:00
calc.c
CMakeLists.txt Fix BUILD_SHARED_LIBS builds after r361567 2019-05-24 02:15:27 +00:00
debuginfo.c
diagnostic.c
disassemble.c
echo.cpp
helpers.c
include-all.c
llvm-c-test.h
main.c
metadata.c
module.c
object.c
targets.c