This is an archive of the discontinued LLVM Phabricator instance.

Fix clone_constant_impl to correctly deal with null pointers
ClosedPublic

Authored by aqjune on Oct 13 2019, 8:59 AM.

Details

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.

Diff Detail

Event Timeline

aqjune created this revision.Oct 13 2019, 8:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 13 2019, 8:59 AM
This revision is now accepted and ready to land.Oct 19 2019, 12:39 PM

I have no permission to land this patch - what is the best way for the next step?

This revision was automatically updated to reflect the committed changes.