diff --git a/clang/lib/AST/Interp/Program.cpp b/clang/lib/AST/Interp/Program.cpp index a9749022ee677..5adc4cf3b5474 100644 --- a/clang/lib/AST/Interp/Program.cpp +++ b/clang/lib/AST/Interp/Program.cpp @@ -222,10 +222,8 @@ Record *Program::getOrCreateRecord(const RecordDecl *RD) { return nullptr; // Deduplicate records. - auto It = Records.find(RD); - if (It != Records.end()) { + if (auto It = Records.find(RD); It != Records.end()) return It->second; - } // We insert nullptr now and replace that later, so recursive calls // to this function with the same RecordDecl don't run into