[all-commits] [llvm/llvm-project] 911207: [RemoveDIs][NFC] Fix rotten green C API test (#92362)
Orlando Cazalet-Hyams via All-commits
all-commits at lists.llvm.org
Thu May 16 05:17:06 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 911207338add39b8439a09fd7f9d97bbe4a335bd
https://github.com/llvm/llvm-project/commit/911207338add39b8439a09fd7f9d97bbe4a335bd
Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
Date: 2024-05-16 (Thu, 16 May 2024)
Changed paths:
M llvm/test/Bindings/llvm-c/debug_info.ll
A llvm/test/Bindings/llvm-c/debug_info_new_format.ll
M llvm/tools/llvm-c-test/debuginfo.c
M llvm/tools/llvm-c-test/main.c
Log Message:
-----------
[RemoveDIs][NFC] Fix rotten green C API test (#92362)
`llvm_test_dibuilder(/*NewDebugInfoMode=*/true)` isn't currently executed in
`return llvm_test_dibuilder(false) && llvm_test_dibuilder(true);`
because `llvm_test_dibuilder` returns 0 for success.
Split the llvm-c-test flag `--test-dibuilder` into two, one for the old and
one for the new debug info format. Add another lit test for the new format.
Now that the test actually runs, it crashes using the new format with
`llvm/lib/IR/LLVMContextImpl.cpp:53:llvm::LLVMContextImpl::~LLVMContextImpl(): Assertion 'TrailingDbgRecords.empty() && "DbgRecords in blocks not cleaned"' failed. Aborted`.
Insert terminators into the blocks so that we don't leave the debug records
trailing, unattached to any instructions, which fixes that.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list