Skip to content

Commit 83e176d

Browse files
AmrDevelopertomtor
authored andcommitted
[CIR][NFC] Fix an unused variable warning (llvm#143933)
This fixes a warning where a variable assigned in 'if' statement wasn't referenced again.
1 parent c257072 commit 83e176d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CIR/CodeGen/CIRGenCall.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ void CIRGenFunction::emitDelegateCallArg(CallArgList &args,
171171

172172
QualType type = param->getType();
173173

174-
if (const auto *rd = type->getAsCXXRecordDecl()) {
174+
if (type->getAsCXXRecordDecl()) {
175175
cgm.errorNYI(param->getSourceRange(),
176176
"emitDelegateCallArg: record argument");
177177
return;

0 commit comments

Comments
 (0)