Skip to content

Commit 718ef34

Browse files
[llvm-c-test] Fix warnings
This patch fixes: llvm/tools/llvm-c-test/debuginfo.c:330:20: error: unused variable 'Phi1FirstDbgRecord' [-Werror,-Wunused-variable] llvm/tools/llvm-c-test/debuginfo.c:332:20: error: unused variable 'Phi1LastDbgRecord' [-Werror,-Wunused-variable]
1 parent f80c0ba commit 718ef34

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/tools/llvm-c-test/debuginfo.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,10 @@ int llvm_test_dibuilder(void) {
328328
// Test that LLVMGetFirstDbgRecord and LLVMGetLastDbgRecord return NULL for
329329
// instructions without debug info.
330330
LLVMDbgRecordRef Phi1FirstDbgRecord = LLVMGetFirstDbgRecord(Phi1);
331+
(void)Phi1FirstDbgRecord;
331332
assert(Phi1FirstDbgRecord == NULL);
332333
LLVMDbgRecordRef Phi1LastDbgRecord = LLVMGetLastDbgRecord(Phi1);
334+
(void)Phi1LastDbgRecord;
333335
assert(Phi1LastDbgRecord == NULL);
334336

335337
// Insert a non-phi before the `ret` but not before the debug records to

0 commit comments

Comments
 (0)