File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -909,7 +909,8 @@ def err_mmap_nested_submodule_id : Error<
909909 "qualified module name can only be used to define modules at the top level">;
910910def err_mmap_expected_feature : Error<"expected a feature name">;
911911def err_mmap_expected_attribute : Error<"expected an attribute name">;
912- def err_mmap_link_redecalration : Error<"redeclaration of link library '%0'">;
912+ def warn_mmap_link_redeclaration : Warning<"redeclaration of link library '%0'">,
913+ InGroup<DiagGroup<"module-link-redeclaration">>, DefaultError;
913914def note_mmap_prev_link_declaration : Note<"previously declared here">;
914915def err_mmap_submodule_link_decl
915916 : Error<"link declaration is not allowed in submodules">;
Original file line number Diff line number Diff line change @@ -864,7 +864,7 @@ std::optional<LinkDecl> ModuleMapFileParser::parseLinkDecl(
864864 auto [It, Inserted] =
865865 SeenLinkDecl.insert (std::make_pair (Library, LD.Location ));
866866 if (!Inserted) {
867- Diags.Report (LD.Location , diag::err_mmap_link_redecalration ) << Library;
867+ Diags.Report (LD.Location , diag::warn_mmap_link_redeclaration ) << Library;
868868 Diags.Report (It->second , diag::note_mmap_prev_link_declaration);
869869 HadError = true ;
870870 return std::nullopt ;
You can’t perform that action at this time.
0 commit comments