Fix test: LLVMGetBitcodeModule takes ownership of memory buffer
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 4 Jul 2022 11:35:26 +0000 (13:35 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 8 Jul 2022 18:06:44 +0000 (20:06 +0200)
commit5a731d733c569a6518ca136d6e907fae19942f4b
tree855c0f136316d895671e8667085e7e59ae13c082
parentbc2a6defc853553b3896cb853bb84fe663f6bfd0
Fix test: LLVMGetBitcodeModule takes ownership of memory buffer

Clarify this behavior in the C interface header file and fix a related
bug in a test.

Differential Revision: https://reviews.llvm.org/D129113
llvm/include/llvm-c/BitReader.h
llvm/tools/llvm-c-test/diagnostic.c