diff --git a/clang/lib/AST/Interp/ByteCodeExprGen.cpp b/clang/lib/AST/Interp/ByteCodeExprGen.cpp index 6993d751fe58f..8a2c1e54e10a5 100644 --- a/clang/lib/AST/Interp/ByteCodeExprGen.cpp +++ b/clang/lib/AST/Interp/ByteCodeExprGen.cpp @@ -2283,8 +2283,7 @@ bool ByteCodeExprGen::dereferenceParam( const Expr *LV, PrimType T, const ParmVarDecl *PD, DerefKind AK, llvm::function_ref Direct, llvm::function_ref 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: