From f92980c72660c40a18b72dd3b259dd3c200f109f Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 23 Oct 2022 09:34:49 -0700 Subject: [PATCH] [clang] Fix a warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch fixes: clang/lib/AST/Interp/ByteCodeExprGen.cpp:978:24: warning: variable ‘T’ set but not used [-Wunused-but-set-variable] T and ReturnType were introduced on August 19, 2022 in commit 8e41e6a4eafa2b667ec37ece33a85493fe0156c2. Their last uses were removed on October 13, 2022 in commit 0e754cfadc9487282d9b6119c41962c5c6c3660f. --- clang/lib/AST/Interp/ByteCodeExprGen.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/clang/lib/AST/Interp/ByteCodeExprGen.cpp b/clang/lib/AST/Interp/ByteCodeExprGen.cpp index a5969bb9f318..64bd5172b7f8 100644 --- a/clang/lib/AST/Interp/ByteCodeExprGen.cpp +++ b/clang/lib/AST/Interp/ByteCodeExprGen.cpp @@ -974,8 +974,6 @@ bool ByteCodeExprGen::VisitCallExpr(const CallExpr *E) { if (Func->isFullyCompiled() && !Func->isConstexpr()) return false; - QualType ReturnType = E->getCallReturnType(Ctx.getASTContext()); - Optional T = classify(ReturnType); // Put arguments on the stack. for (const auto *Arg : E->arguments()) { if (!this->visit(Arg))