From 145e15a37b7df0fdd9f7221801336d7d8d2d46c7 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Mon, 24 Apr 2017 23:12:30 +0000 Subject: [modules ts] Diagnose 'export' declarations outside of a module interface. llvm-svn: 301271 --- clang/lib/Lex/ModuleMap.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/Lex/ModuleMap.cpp') 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 -- cgit v1.2.3