diff --git a/clang/lib/AST/Interp/InterpFrame.cpp b/clang/lib/AST/Interp/InterpFrame.cpp index a8c4aab84ef8d..6acfbd3fa6143 100644 --- a/clang/lib/AST/Interp/InterpFrame.cpp +++ b/clang/lib/AST/Interp/InterpFrame.cpp @@ -147,8 +147,8 @@ void print(llvm::raw_ostream &OS, const Pointer &P, ASTContext &Ctx, void InterpFrame::describe(llvm::raw_ostream &OS) { const FunctionDecl *F = getCallee(); - auto *M = dyn_cast(F); - if (M && M->isInstance() && !isa(F)) { + if (const auto *M = dyn_cast(F); + M && M->isInstance() && !isa(F)) { print(OS, This, S.getCtx(), S.getCtx().getRecordType(M->getParent())); OS << "->"; }