================
@@ -1162,6 +1162,11 @@ class Sema final {
   /// CurContext - This is the current declaration context of parsing.
   DeclContext *CurContext;
 
+  SemaOpenACC &OpenACC() {
+    assert(OpenACCPtr);
----------------
Endilll wrote:

Given that moving a hot path getter to out-of-line definition doesn't regress 
compile-time performance even with LTO disabled, I'm skeptical additional 
assert on an effectively constant pointer would make a difference. I expect 
branch target predictors in CPUs to beat this easily.

https://github.com/llvm/llvm-project/pull/84184
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to