llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) <details> <summary>Changes</summary> We already `assert(Func)` above and use `Func` directly in other places in this function, so just get the `FunctionDecl` from that instead of going through the virtual function. --- Full diff: https://github.com/llvm/llvm-project/pull/220230.diff 1 Files Affected: - (modified) clang/lib/AST/ByteCode/InterpFrame.cpp (+1-1) ``````````diff diff --git a/clang/lib/AST/ByteCode/InterpFrame.cpp b/clang/lib/AST/ByteCode/InterpFrame.cpp index 4ec08deeb3279..033e35eee42ad 100644 --- a/clang/lib/AST/ByteCode/InterpFrame.cpp +++ b/clang/lib/AST/ByteCode/InterpFrame.cpp @@ -163,7 +163,7 @@ void InterpFrame::describe(llvm::raw_ostream &OS) const { const ASTContext &ASTCtx = S.getASTContext(); const Expr *CallExpr = Caller->getExpr(getRetOpPC()); - const FunctionDecl *F = getCallee(); + const FunctionDecl *F = Func->getDecl(); auto PrintingPolicy = ASTCtx.getPrintingPolicy(); PrintingPolicy.SuppressLambdaBody = true; `````````` </details> https://github.com/llvm/llvm-project/pull/220230 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
