[flang-commits] [flang] [llvm] [flang][OpenMP] Sema checks, lowering with new format of MAP modifiers (PR #149137)

Michael Kruse via flang-commits flang-commits at lists.llvm.org
Wed Jul 23 01:24:41 PDT 2025


================
@@ -27,7 +27,8 @@ class CanonicalizationOfOmp {
 public:
   template <typename T> bool Pre(T &) { return true; }
   template <typename T> void Post(T &) {}
-  CanonicalizationOfOmp(parser::Messages &messages) : messages_{messages} {}
+  CanonicalizationOfOmp(SemanticsContext &context)
+      : context_{context}, messages_{context.messages()} {}
----------------
Meinersbur wrote:

This adds a use of `SemanticContext` without including its header file. This means the build was failing when precompiled headers are disabled.

Fixed in 0586067cf07bef0f04fd1dc7135a9b773ebaa07a 

https://github.com/llvm/llvm-project/pull/149137


More information about the flang-commits mailing list