Author: Kazu Hirata Date: 2022-10-23T09:34:49-07:00 New Revision: f92980c72660c40a18b72dd3b259dd3c200f109f
URL: https://github.com/llvm/llvm-project/commit/f92980c72660c40a18b72dd3b259dd3c200f109f DIFF: https://github.com/llvm/llvm-project/commit/f92980c72660c40a18b72dd3b259dd3c200f109f.diff LOG: [clang] Fix a warning 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. Added: Modified: clang/lib/AST/Interp/ByteCodeExprGen.cpp Removed: ################################################################################ diff --git a/clang/lib/AST/Interp/ByteCodeExprGen.cpp b/clang/lib/AST/Interp/ByteCodeExprGen.cpp index a5969bb9f318e..64bd5172b7f88 100644 --- a/clang/lib/AST/Interp/ByteCodeExprGen.cpp +++ b/clang/lib/AST/Interp/ByteCodeExprGen.cpp @@ -974,8 +974,6 @@ bool ByteCodeExprGen<Emitter>::VisitCallExpr(const CallExpr *E) { if (Func->isFullyCompiled() && !Func->isConstexpr()) return false; - QualType ReturnType = E->getCallReturnType(Ctx.getASTContext()); - Optional<PrimType> T = classify(ReturnType); // Put arguments on the stack. for (const auto *Arg : E->arguments()) { if (!this->visit(Arg)) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits