Author: Timm Baeder Date: 2025-09-16T11:34:01+02:00 New Revision: 10be515f1e000e6fb69f546e3a79537a617def24
URL: https://github.com/llvm/llvm-project/commit/10be515f1e000e6fb69f546e3a79537a617def24 DIFF: https://github.com/llvm/llvm-project/commit/10be515f1e000e6fb69f546e3a79537a617def24.diff LOG: [clang][bytecode][NFC] InterpState: get ASTContext from interp::Context (#158852) Access the Parent state one less time. Added: Modified: clang/lib/AST/ByteCode/InterpState.h Removed: ################################################################################ diff --git a/clang/lib/AST/ByteCode/InterpState.h b/clang/lib/AST/ByteCode/InterpState.h index 4e1b9aec09099..1814d273ec1c6 100644 --- a/clang/lib/AST/ByteCode/InterpState.h +++ b/clang/lib/AST/ByteCode/InterpState.h @@ -67,7 +67,7 @@ class InterpState final : public State, public SourceMapper { Expr::EvalStatus &getEvalStatus() const override { return Parent.getEvalStatus(); } - ASTContext &getASTContext() const override { return Parent.getASTContext(); } + ASTContext &getASTContext() const override { return Ctx.getASTContext(); } // Forward status checks and updates to the walker. bool keepEvaluatingAfterFailure() const override { _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
