summaryrefslogtreecommitdiffstats
path: root/lib/Parse
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2019-04-14 11:11:37 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2019-04-14 11:11:37 +0000
commitcab7f1f7bc141ac88d15030088b311bd450b2c94 (patch)
treebd02ca22dba6426e431867efba8cd97dcf737415 /lib/Parse
parent33eb2fffd975207bf64cb479d6eb9493d5f4110d (diff)
[c++20] Enable driver and frontend support for building and using
modules when -std=c++2a is specified. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@358355 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse')
-rw-r--r--lib/Parse/Parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp
index d1920a9ae7..febb0f942e 100644
--- a/lib/Parse/Parser.cpp
+++ b/lib/Parse/Parser.cpp
@@ -837,7 +837,7 @@ Parser::ParseExternalDeclaration(ParsedAttributesWithRange &attrs,
SingleDecl = ParseModuleImport(SourceLocation());
break;
case tok::kw_export:
- if (getLangOpts().ModulesTS) {
+ if (getLangOpts().CPlusPlusModules || getLangOpts().ModulesTS) {
SingleDecl = ParseExportDeclaration();
break;
}