[PATCH] D122394: [C++20][Modules] Correct an assert for modules-ts.
Iain Sandoe via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 25 07:55:33 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGcf396c56e7df: [C++20][Modules] Correct an assert for modules-ts. (authored by iains).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122394/new/
https://reviews.llvm.org/D122394
Files:
clang/lib/Sema/SemaModule.cpp
Index: clang/lib/Sema/SemaModule.cpp
===================================================================
--- clang/lib/Sema/SemaModule.cpp
+++ clang/lib/Sema/SemaModule.cpp
@@ -206,7 +206,7 @@
ModuleScopes.back().Module->Kind == Module::GlobalModuleFragment)
GlobalModuleFragment = ModuleScopes.back().Module;
- assert((!getLangOpts().CPlusPlusModules ||
+ assert((!getLangOpts().CPlusPlusModules || getLangOpts().ModulesTS ||
SeenGMF == (bool)GlobalModuleFragment) &&
"mismatched global module state");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122394.418223.patch
Type: text/x-patch
Size: 543 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220325/7bc1388b/attachment.bin>
More information about the cfe-commits
mailing list