Skip to content

Commit 10be515

Browse files
authored
[clang][bytecode][NFC] InterpState: get ASTContext from interp::Context (#158852)
Access the Parent state one less time.
1 parent f5022bd commit 10be515

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/ByteCode/InterpState.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class InterpState final : public State, public SourceMapper {
6767
Expr::EvalStatus &getEvalStatus() const override {
6868
return Parent.getEvalStatus();
6969
}
70-
ASTContext &getASTContext() const override { return Parent.getASTContext(); }
70+
ASTContext &getASTContext() const override { return Ctx.getASTContext(); }
7171

7272
// Forward status checks and updates to the walker.
7373
bool keepEvaluatingAfterFailure() const override {

0 commit comments

Comments
 (0)