[clang] [CIR][NFC] Fix an unused variable warning (PR #143933)
Amr Hesham via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 12 10:10:05 PDT 2025
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/143933
This fixes a warning where a variable assigned in 'if' statement wasn't referenced again.
>From 28f484e0ddd857bdd7c6a623aaacc1173c3c158c Mon Sep 17 00:00:00 2001
From: AmrDeveloper <amr96 at programmer.net>
Date: Thu, 12 Jun 2025 19:09:17 +0200
Subject: [PATCH] [CIR][NFC] Fix an unused variable warning
---
clang/lib/CIR/CodeGen/CIRGenCall.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clang/lib/CIR/CodeGen/CIRGenCall.cpp b/clang/lib/CIR/CodeGen/CIRGenCall.cpp
index da754e0806b2d..67c6a8dd3ef5a 100644
--- a/clang/lib/CIR/CodeGen/CIRGenCall.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenCall.cpp
@@ -171,7 +171,7 @@ void CIRGenFunction::emitDelegateCallArg(CallArgList &args,
QualType type = param->getType();
- if (const auto *rd = type->getAsCXXRecordDecl()) {
+ if (type->getAsCXXRecordDecl()) {
cgm.errorNYI(param->getSourceRange(),
"emitDelegateCallArg: record argument");
return;
More information about the cfe-commits
mailing list