================
@@ -161,6 +162,10 @@ void clang::ParseAST(Sema &S, bool PrintStats, bool 
SkipFunctionBodies) {
       return M;
     });
     P.Initialize();
+
+    llvm::scope_exit _([&S]() { S.unregisterSemaProxy(); });
+    S.registerSemaProxy();
----------------
erichkeane wrote:

Do we want to unregister BEFORE the `Consumer->HandleTopLevelDecls`?  We 
probably don't need this during codegen, do we?

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

Reply via email to