llvmbot wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Timm Baeder (tbaederr)

<details>
<summary>Changes</summary>

Access the Parent state one less time.

---
Full diff: https://github.com/llvm/llvm-project/pull/158852.diff


1 Files Affected:

- (modified) clang/lib/AST/ByteCode/InterpState.h (+1-1) 


``````````diff
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 {

``````````

</details>


https://github.com/llvm/llvm-project/pull/158852
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to