Author: Timm Bäder Date: 2023-09-04T15:44:09+02:00 New Revision: ac56556047bbbdf9d3991c40835e4b7b7ce513ad
URL: https://github.com/llvm/llvm-project/commit/ac56556047bbbdf9d3991c40835e4b7b7ce513ad DIFF: https://github.com/llvm/llvm-project/commit/ac56556047bbbdf9d3991c40835e4b7b7ce513ad.diff LOG: [clang][Interp][NFC] Rename a parameter We always call the expression parameter E. 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 ab40cb76a1c7ca..b2177c29d30d5a 100644 --- a/clang/lib/AST/Interp/ByteCodeExprGen.cpp +++ b/clang/lib/AST/Interp/ByteCodeExprGen.cpp @@ -1749,17 +1749,17 @@ const Function *ByteCodeExprGen<Emitter>::getFunction(const FunctionDecl *FD) { } template <class Emitter> -bool ByteCodeExprGen<Emitter>::visitExpr(const Expr *Exp) { +bool ByteCodeExprGen<Emitter>::visitExpr(const Expr *E) { ExprScope<Emitter> RootScope(this); - if (!visit(Exp)) + if (!visit(E)) return false; - if (Exp->getType()->isVoidType()) - return this->emitRetVoid(Exp); + if (E->getType()->isVoidType()) + return this->emitRetVoid(E); - if (std::optional<PrimType> T = classify(Exp)) - return this->emitRet(*T, Exp); - return this->emitRetValue(Exp); + if (std::optional<PrimType> T = classify(E)) + return this->emitRet(*T, E); + return this->emitRetValue(E); } /// Toplevel visitDecl(). _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits