diff --git a/clang/lib/AST/ByteCode/InterpState.h b/clang/lib/AST/ByteCode/InterpState.h index e095908bce986..6e0f6aa3f8e1c 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 {