Skip to content

Commit 15b0cc1

Browse files
committed
[clang][Interp][NFC] Move a declaration into an if statement
1 parent 2b5e4ee commit 15b0cc1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/AST/Interp/ByteCodeExprGen.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2283,8 +2283,7 @@ bool ByteCodeExprGen<Emitter>::dereferenceParam(
22832283
const Expr *LV, PrimType T, const ParmVarDecl *PD, DerefKind AK,
22842284
llvm::function_ref<bool(PrimType)> Direct,
22852285
llvm::function_ref<bool(PrimType)> Indirect) {
2286-
auto It = this->Params.find(PD);
2287-
if (It != this->Params.end()) {
2286+
if (auto It = this->Params.find(PD); It != this->Params.end()) {
22882287
unsigned Idx = It->second.Offset;
22892288
switch (AK) {
22902289
case DerefKind::Read:

0 commit comments

Comments
 (0)