================
@@ -915,8 +915,10 @@ def err_mmap_expected_attribute : Error<"expected an 
attribute name">;
 def warn_mmap_link_redeclaration : Warning<"redeclaration of link library 
'%0'">,
   InGroup<DiagGroup<"module-link-redeclaration">>, DefaultError;
 def note_mmap_prev_link_declaration : Note<"previously declared here">;
-def err_mmap_submodule_link_decl
-    : Error<"link declaration is not allowed in submodules">;
+def warn_mmap_submodule_link_decl
+    : Warning<"link declaration is not allowed in submodules">,
----------------
cyndyishida wrote:

It would be nice if there were some kind of information on how the user should 
fix this.
For example, could you add a comment that includes "expected top-level module" 
e.g. in `warn_mmap_mismatched_private_submodule`?

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

Reply via email to