Author: Aiden Grossman Date: 2026-02-25T21:50:54Z New Revision: 5cd6bb04e2d8b0712353a7dcd9729b217c35b12f
URL: https://github.com/llvm/llvm-project/commit/5cd6bb04e2d8b0712353a7dcd9729b217c35b12f DIFF: https://github.com/llvm/llvm-project/commit/5cd6bb04e2d8b0712353a7dcd9729b217c35b12f.diff LOG: [Clang][Modules] Fix -Wunused-variable from #182182 https://lab.llvm.org/staging/#/builders/227/builds/1093 Added: Modified: clang/lib/Driver/ModulesDriver.cpp Removed: ################################################################################ diff --git a/clang/lib/Driver/ModulesDriver.cpp b/clang/lib/Driver/ModulesDriver.cpp index cf9b24a43d1d5..8aad595b78686 100644 --- a/clang/lib/Driver/ModulesDriver.cpp +++ b/clang/lib/Driver/ModulesDriver.cpp @@ -132,7 +132,7 @@ static ManifestEntryLookup buildManifestLookupMap(ArrayRef<StdModuleManifest::Module> ManifestEntries) { ManifestEntryLookup ManifestEntryBySource; for (auto &Entry : ManifestEntries) { - const bool Inserted = + [[maybe_unused]] const bool Inserted = ManifestEntryBySource.try_emplace(Entry.SourcePath, &Entry).second; assert(Inserted && "Manifest defines multiple modules with the same source path."); _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
