Skip to content

Commit

Permalink
[clang][Interp][NFC] Rename a parameter
Browse files Browse the repository at this point in the history
We always call the expression parameter E.
  • Loading branch information
tbaederr committed Sep 4, 2023
1 parent 1900721 commit ac56556
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions clang/lib/AST/Interp/ByteCodeExprGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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().
Expand Down

0 comments on commit ac56556

Please sign in to comment.