Skip to content

Commit

Permalink
[clang][Interp][NFC] Move a declaration into an if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaederr committed Feb 12, 2024
1 parent 2b5e4ee commit 15b0cc1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clang/lib/AST/Interp/ByteCodeExprGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2283,8 +2283,7 @@ bool ByteCodeExprGen<Emitter>::dereferenceParam(
const Expr *LV, PrimType T, const ParmVarDecl *PD, DerefKind AK,
llvm::function_ref<bool(PrimType)> Direct,
llvm::function_ref<bool(PrimType)> Indirect) {
auto It = this->Params.find(PD);
if (It != this->Params.end()) {
if (auto It = this->Params.find(PD); It != this->Params.end()) {
unsigned Idx = It->second.Offset;
switch (AK) {
case DerefKind::Read:
Expand Down

0 comments on commit 15b0cc1

Please sign in to comment.