HomePhabricator

Fix clone_constant_impl to correctly deal with null pointers

Authored by aqjune on Nov 4 2019, 8:26 PM.

Description

Fix clone_constant_impl to correctly deal with null pointers

Summary:
This patch resolves llvm-c-test's following error

LLVM ERROR: LLVMGetValueKind returned incorrect type

which arises when the input bitcode contains a null pointer.

Reviewers: jdoerfert, CodaFi, deadalnix

Reviewed By: jdoerfert

Subscribers: llvm-commits

Tags: #llvm

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

Details

Committed
aqjuneNov 4 2019, 8:53 PM
Reviewer
jdoerfert
Differential Revision
D68928: Fix clone_constant_impl to correctly deal with null pointers
Parents
rG0aba69eb1a01: [analyzer] Add test directory for scan-build.
Branches
Unknown
Tags
Unknown