Author: Timm Baeder Date: 2026-09-01T15:51:37+02:00 New Revision: 9c4f80497ccfc5324a76aad70fc3f432691188c0
URL: https://github.com/llvm/llvm-project/commit/9c4f80497ccfc5324a76aad70fc3f432691188c0 DIFF: https://github.com/llvm/llvm-project/commit/9c4f80497ccfc5324a76aad70fc3f432691188c0.diff LOG: [clang][bytecode][NFC] Use Func->getDecl() instead of getCallee() (#220230) 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. Added: Modified: clang/lib/AST/ByteCode/InterpFrame.cpp Removed: ################################################################################ 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; _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
