diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-04-24 23:12:30 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-04-24 23:12:30 +0000 |
commit | 145e15a37b7df0fdd9f7221801336d7d8d2d46c7 (patch) | |
tree | 1ca12259553cd803e190f47b8d18e7dd71f45b13 /clang/lib/Lex/ModuleMap.cpp | |
parent | e8d0539f202c9f35a98193fcbd7917f683fd8e08 (diff) | |
download | bcm5719-llvm-145e15a37b7df0fdd9f7221801336d7d8d2d46c7.tar.gz bcm5719-llvm-145e15a37b7df0fdd9f7221801336d7d8d2d46c7.zip |
[modules ts] Diagnose 'export' declarations outside of a module interface.
llvm-svn: 301271
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
-rw-r--r-- | clang/lib/Lex/ModuleMap.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Lex/ModuleMap.cpp b/clang/lib/Lex/ModuleMap.cpp index 5b60ed3f812..512d7dc5de6 100644 --- a/clang/lib/Lex/ModuleMap.cpp +++ b/clang/lib/Lex/ModuleMap.cpp @@ -581,6 +581,7 @@ Module *ModuleMap::createModuleForInterfaceUnit(SourceLocation Loc, auto *Result = new Module(Name, Loc, nullptr, /*IsFramework*/ false, /*IsExplicit*/ false, NumCreatedModules++); + Result->Kind = Module::ModuleInterfaceUnit; Modules[Name] = SourceModule = Result; // Mark the main source file as being within the newly-created module so that |